English
POST /api/table/{tableId}/record
[ { fields: { "Name": "John Doe", "Age": 30, "Email": "john@example.com" } }, { fields: { "Name": "Jane Smith", "Age": 28, "Email": "jane@example.com" } } ]
fields
"name"
"id"
"dbFieldName"
{ fields: { "Name": "John Doe", "Age": 30 } }
{ fields: { "fldABCDEFGHIJKLMN": "John Doe", "fldOPQRSTUVWXYZ12": 30 } }
true
{ "User table": "张三" }
{ "Date": "2023-05-15" }
{ "Assigned To": "John Doe" }
"viwABCDEFGHIJKLMN"
"rec123456789ABCDE"
"after"
{ viewId: "viwABCDEFGHIJKLMN", anchorId: "rec123456789ABCDE", position: "after" }
示例响应体
{ "records": [ { "id": "record789", "fields": { "single line text": "text value 1" } }, { "id": "record567", "fields": { "single line text": "text value 2" } } ] }
curl -X POST 'https://app.teable.cn/api/table/__tableId__/record' \ -H 'Authorization: Bearer __token__' \ -H 'Content-Type: application/json' \ -d '{ "records": [ { "fields": { "Name": "John Doe", "Age": 30 } } ] }'