Clinia
TerminologyVocabularies

Bulk upsert, update or delete concepts

POST
/terminology/v1/vocabularies/{vocabularyKey}/concepts/bulk

Bulk upsert, update or delete concepts. Bulk operations are processed synchronously.

headerX-Clinia-API-Key<token>
vocabularyKey*string

The key of the vocabulary.

The request body should contain a list of concepts to upsert, update or delete.

application/json
  1. body
operations*array<||>

Response Body

The bulk operation is valid. Response contains the status of bulk request and status of each processed operation. Bulk request status will be SUCCESS if all operations are successful, otherwise FAILURE.

application/json
  1. response
status*v1OperationStatus

The status of the bulk request. If one or more operations failed, the status will be FAILURE.

Value in"SUCCESS""PENDING""CANCELLED""FAILURE"
receipts?array<>

In case of failure, receipts of the operations are returned. Every operation sent will have a receipt corresponding to their original order. Each receipt will contain the status of the operation and an error if the operation failed.

Example Request
curl -X POST 'https://api..clinia.cloud/terminology/v1/vocabularies/string/concepts/bulk' \  -H 'Content-Type: application/json' \  -d '{  "operations": [    {      "action": "CREATE",      "upsert": {        "definition": "string",        "designation": {          "property1": "string",          "property2": "string"        }      }    }  ]}'
Example Response
{  "status": "SUCCESS",  "receipts": [    {      "code": "string",      "status": "SUCCESS",      "error": {        "code": 400,        "message": "string",        "type": "ALREADY_EXISTS",        "details": [          {}        ],        "additionalContext": {}      }    }  ]}