POST
/
table
/
{tableId}
/
record
/
{recordId}
curl --request POST \
  --url https://app.teable.io/api/table/%7BtableId%7D/record/%7BrecordId%7D \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '{"viewId":"string","anchorId":"string","position":"before"}'
{
  "records": [
    {
      "id": "recXXXXXXX",
      "fields": {
        "single line text": "text value"
      }
    }
  ],
  "extra": {
    "groupPoints": [
      {
        "id": "<string>",
        "type": 0,
        "depth": 1,
        "value": "<any>",
        "isCollapsed": 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

Body

application/json

Where this record to insert to (Optional)

viewId
string
required

You can only specify order in one view when create record (will create a order index automatically)

anchorId
string
required

The record id to anchor to

position
enum<string>
required
Available options:
before,
after

Response

201 - application/json
Successful duplicate
records
object[]
required

Array of record objects

extra
object