Clinia
RegistryPurge

Get the result of a purge request

GET
/sources/{sourceKey}/v1/purge/{taskId}

Get the result of a purge request.

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

The key of the source.

taskId*string

ID of the purge job.

Response Body

Gets the current status of the purge job.

application/json
  1. response
taskId*v1TaskId

The 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>).
collectionType*v1CollectionType

Type of document, either relationships or resources.

Value in"resources""relationships"
collectionKey*string

Key of the resource or relationship collection.

status*v1OperationStatus

Status of the purge operation.

Value in"SUCCESS""PENDING""CANCELLED""FAILURE"
deletedCount?integer

Number of documents deleted in case of success status.

Formatint64
createdAt?string
Formatdate-time
updatedAt?string
Formatdate-time
Example Request
curl -X GET 'https://api..clinia.cloud/sources/string/v1/purge/string'
Example Response
{  "taskId": "string",  "collectionType": "resources",  "collectionKey": "string",  "status": "SUCCESS",  "deletedCount": 0,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}