Skip to main content

UploadRestrictedFile

Upload a File in the attachment field

Description

Upload a file in the attachment field

  • Uploaded files are stored in Storage, but are not registered to Items.
  • In order to register to the corresponding Item, use the file_id included in the Response to execute the action API (CreateItemWithItemIDorExecuteAction) must be called.
  • It is available only when the accessing user has workspace, data store, item, or field access.

Method

POST

Request URL Format

/api/v0/applications/:app-id/datastores/:datastore-id/items/field/:item-id/:field-id

URL Params

app-id           : Application ID (application ID specified from the screen, or p_id)
datastore-id : Datastore ID (Datastore ID specified from the screen or d_id)
item-id : Item ID
field-id : Field ID

Content-Type : multipart/form-data

filename         : File name
file : File

Request URL Sample

POST https://api.xxx.com/api/v0/applications/APPID/datastores/DATABASEID/items/field/59ad2d8a0e247927638e761a/58cc9253fbfcba88307142d1

Response Sample

{
"file_id": "59af720c0e247958c7011a88"
}