跳转到主要内容
POST
/
table
/
{tableId}
/
record
/
{recordId}
/
{fieldId}
/
uploadAttachment
Upload attachment
curl --request POST \
  --url http://127.0.0.1:3000/api/table/{tableId}/record/{recordId}/{fieldId}/uploadAttachment \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'fileUrl=<string>'
{
  "id": "<string>",
  "fields": {},
  "name": "<string>",
  "autoNumber": 123,
  "createdTime": "<string>",
  "lastModifiedTime": "<string>",
  "createdBy": "<string>",
  "lastModifiedBy": "<string>",
  "permissions": {},
  "undeletable": true
}

授权

Authorization
string
header
必填

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

路径参数

tableId
string
必填
recordId
string
必填
fieldId
string
必填

ID of an attachment field

请求体

multipart/form-data

upload attachment

file
file
fileUrl
string

响应

201 - application/json

Returns record data after update.

id
string
必填

The record id.

fields
object
必填

Objects with a fields key mapping fieldId or field name to value for that field.

name
string

primary field value

autoNumber
number

Auto number, a unique identifier for each record

createdTime
string

Created time, date ISO string (new Date().toISOString).

lastModifiedTime
string

Last modified time, date ISO string (new Date().toISOString).

createdBy
string

Created by, user name

lastModifiedBy
string

Last modified by, user name

permissions
object

Permissions for the record

undeletable
boolean

Whether the record is undeletable

Last modified on December 10, 2025