Bulk create, upsert, or delete resources
Bulk create, upsert, or delete resources. The request body should contain a list of operations. All operations will be processed even if some of them fail.
X-Clinia-API-Key<token>sourceKey*stringThe source key.
The request body should contain a list of resources to create, upsert, or delete. Operations of different types (e.g., "CREATE", "UPSERT") can be mixed and will be processed in the order they are provided.
application/json- body
operations*array<||>The bulk operation is valid and accepted with a status 'ACCEPTED'.
application/json- response
Response when a task has been accepted for asynchronous processing. The task will be executed in the background.
taskId*v1TaskIdThe task identifier. Used to track an async task in the system. Use the task ID to poll for completion status. The taskId holds different prefix to represent different tasks.
- oneOf task:
s_<id>. - bulk task:
bk_<id>(deprecated:<id>only). - bundle task:
bd_<id>(deprecated:<id>only). - purge task:
pg_<id>(deprecated:purge:<id>).
status*v1TaskSubmissionStatusStatus of the task submission.
ACCEPTED: The task has been accepted for asynchronous processing. The task will be executed in the background.PERSISTED: The task has been executed synchronously and the results are immediately persisted.
"ACCEPTED""PERSISTED"curl -X POST 'https://api..clinia.cloud/sources/string/v1/resources/bulk' \ -H 'Content-Type: application/json' \ -d '{ "operations": [ { "action": "CREATE", "create": { "type": "string", "data": {} } } ]}'{ "taskId": "string", "status": "ACCEPTED"}Bulk create, upsert, or delete relationships POST
Bulk create, upsert, or delete relationships. The request body should contain a list of operations. All operations will be processed even if some of them fail.
Bundle resource and relationship operations to be processed POST
Send a bundle of operations, including resource and relationship operations, to be processed atomically by the system. Notes: - Order of Processing: Resource operations are executed first, followed by relationship operations. - Atomicity: The system processes the entire bundle as a single atomic transaction. - If all operations succeed, the changes are committed. - If any operation fails, all operations are rolled back, ensuring no partial changes.