upload_bitable_attachment
Upload a file to a Bitable as an image or attachment. Returns a file_token to insert into record attachment fields.
Instructions
[Official API] Upload a file as a Bitable attachment (drive/v1/medias/upload_all with parent_type=bitable_image or bitable_file). Returns file_token suitable for writing into a Bitable Attachment-type field via batch_create/update_bitable_records (the field value should be [{file_token}]).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_token | Yes | Bitable app token (the bascn... or basc... id) | |
| file_path | Yes | Absolute path to the file on disk | |
| kind | No | Whether the attachment is an image (bitable_image) or a generic file (bitable_file). Default: file. |