Clinia
RegistryTask

Get a task from the registry

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

Get the operation receipts related to a task id.

X-Clinia-API-Key<token>

In: header

Path Parameters

sourceKey*string

The source key.

taskId*string

The task id.

Query Parameters

withReceipts?boolean

If set to true, the operation receipts of the task will be included in the response. Else only the status of the task will be returned.

Defaultfalse

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/sources/string/v1/tasks/string"
{  "status": "SUCCESS",  "taskId": "string",  "receipts": [    {      "receivedAt": "2019-08-24T14:15:22Z",      "completedAt": "2019-08-24T14:15:22Z",      "taskId": "string",      "action": "CREATE",      "status": "SUCCESS",      "error": {        "code": 400,        "message": "string",        "type": "ALREADY_EXISTS",        "details": [          {}        ],        "additionalContext": {}      },      "pipelineExecution": {        "id": "string",        "pipelineDefinitionId": "string",        "status": "SUCCESSFUL"      },      "targetType": "RELATIONSHIP",      "id": "string",      "type": "string"    }  ]}