Passer au contenu principal
POST
/
api
/
publicapi
/
v1
/
catalogs
/
{catalogId}
/
records
Ajoute des enregistrements au catalogue indiqué
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": {}
}

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

catalogId
string
requis

Identifiant de catalogue. Vous pouvez le trouver dans la liste de tous les catalogues.

Corps

Enregistrements à ajouter

Required array length: 1 - 5000 elements
id
string
requis

Identifiant unique de l’enregistrement

Minimum string length: 1
fields
object
requis

Champs de l’enregistrement

Réponse

L’opération s’est terminée avec succès. Vous trouverez les détails dans la réponse.

insertedRowCount
integer<int32>
requis

Nombre de lignes insérées avec succès

errorRows
object
requis

Liste des erreurs survenues