RegistryPurge
Purge operation request for resources or relationships
POST
Purge operation request for resources or relationships.
header
X-Clinia-API-Key<token>sourceKey*stringThe key of the source.
application/json- body
collectionType*v1CollectionTypeType of document, either relationships or resources.
Value in
"resources""relationships"collectionKey*stringKey of the resource or relationship collection.
A successful response for a valid and accepted purge operation with 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.
Value in
"ACCEPTED""PERSISTED"purgeOperation*curl -X POST 'https://api..clinia.cloud/sources/string/v1/purge' \ -H 'Content-Type: application/json' \ -d '{ "collectionType": "resources", "collectionKey": "string"}'Example Response
{ "taskId": "string", "status": "ACCEPTED", "purgeOperation": { "taskId": "string", "collectionType": "resources", "collectionKey": "string", "status": "SUCCESS", "deletedCount": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}