POST
/
table
/
{tableId}
/
record
/
{recordId}
/
{fieldId}
/
uploadAttachment
curl --request POST \
  --url https://app.teable.cn/api/table/%7BtableId%7D/record/%7BrecordId%7D/%7BfieldId%7D/uploadAttachment \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: multipart/form-data' \
  --form file=string \
  --form fileUrl=string
{
  "id": "<string>",
  "name": "<string>",
  "fields": {},
  "autoNumber": 123,
  "createdTime": "<string>",
  "lastModifiedTime": "<string>",
  "createdBy": "<string>",
  "lastModifiedBy": "<string>",
  "permissions": {},
  "undeletable": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

tableId
string
required
recordId
string
required
fieldId
string
required

ID of an attachment field

Body

multipart/form-data
upload attachment

The body is of type object.

Response

201 - application/json
Returns record data after update.

The response is of type object.