跳转到主要内容
POST
/
api
/
publicapi
/
v1
/
catalogs
/
{catalogId}
/
records
向指定目录添加记录
curl --request POST \
  --url https://vantage-us.abbyy.com/api/publicapi/v1/catalogs/{catalogId}/records \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json-patch+json' \
  --data '
[
  {
    "id": "<string>",
    "fields": {}
  }
]
'
{
  "insertedRowCount": 123,
  "errorRows": {}
}

授权

Authorization
string
header
必填

The access token received from the authorization server in the OAuth 2.0 flow.

路径参数

catalogId
string
必填

目录标识符。您可以在所有目录的列表中找到它。

请求体

要添加的记录

Required array length: 1 - 5000 elements
id
string
必填

记录的唯一 ID

Minimum string length: 1
fields
object
必填

记录的字段

响应

操作已成功完成。详情请参见响应。

insertedRowCount
integer<int32>
必填

成功插入的行数

errorRows
object
必填

发生的错误列表