Monitor your delete task to verify it completes.
The possible states of a task are:
State | Description |
NOT_STARTED | Scheduled but not started. |
IN_PROGRESS | Currently running. |
COMPLETE | Done, either successfully or not. |
CANCELLING | Cancellation has begun but not yet complete. |
CANCELLED | Cancellation complete and any changes are rolled back. |
Method and endpoint
https://api.anaplan.com/2/0/workspaces/{workspaceID}/models/{modelID}/actions/{actionID}/tasks/{taskID}
Parameters
Parameters | Description |
AnaplanAuthToken:{token} | Your Anaplan authentication token value. |
workspaceID | The workspace ID |
modelID | The model ID |
actionID | The ID for the delete action. |
taskID | The delete action task ID. |
Curl example
curl -X GET \ https://api.anaplan.com/2/0/workspaces/0a800b00e0000000f000001eab0d0000/models/F1111111C11111111B11111F1111E11F/actions/117000000002/tasks/C2A0B7082F2149E3AA52D167E1DD04D1 \ -H 'authorization: AnaplanAuthToken {token}}' \ -H "Content-Type:application/json"
Response
{
"task":{
"type":"taskInformation",
"taskId":"0690AA1C761F48549C3442A02F91D962",
"currentStep":"Complete.",
"progress":1,
"result":{
"failureDumpAvailable":false,
"objectId":"117000000019",
"successful":true
},
"taskState":"COMPLETE"
}
}