跳转到主要内容
POST
/
table
/
{tableId}
/
record
/
{recordId}
/
duplicate
Duplicate record
curl --request POST \
  --url http://127.0.0.1:3000/api/table/{tableId}/record/{recordId}/duplicate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "viewId": "<string>",
  "anchorId": "<string>",
  "position": "before"
}
'
{
  "records": [
    {
      "id": "recXXXXXXX",
      "fields": {
        "single line text": "text value"
      }
    }
  ]
}

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
可用选项:
before,
after

Response

201 - application/json

Successful duplicate

records
object[]
required

Array of record objects

Example:
[
{
"id": "recXXXXXXX",
"fields": { "single line text": "text value" }
}
]