Skip to main content

UploadItemFile

Upload a File in the Attachment field

Description

Upload a file in the attachment field

  • The uploaded file is saved in Storage, but it is not registered in Item.
  • In order to register for the relevant item using the file_id contained in the response, the action execution API (CreateItemWithItemID and ExecuteAction must be called.

Method

POST

Request URL Format

/api/v0/items/:item-id/fields/:field-id/attachments

URL Params

item-id          : Item ID
field-id : Field ID

Content-Type : multipart/form-data

application_id   : Application ID
datastore_id : Datastore ID
filename : File name
file : File

Request URL Sample

POST https://api.xxx.com/api/v0/items/59ad2d8a0e247927638e761a/fields/58cc9253fbfcba88307142d1/attachments
  • CSV file name:./testcsv/importapi/test.csv
  • CSV file image:

Response Sample

{
"file_id": "59af720c0e247958c7011a88"
}