Poll the status of your export task and repeat until the task is complete.
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}/exports/{exportID}/tasks/{taskID}
Parameters
Parameter | Description |
AnaplanAuthToken:{token} | Your Anaplan authentication token value. |
workspaceID | The workspace ID |
modelID | The model ID |
exportID | The export ID |
taskID | The ID for your export task |
Curl example
curl -X GET \ https://api.anaplan.com/2/0/workspaces/0a800b00e0000000f000001eab0d0000/models/F1111111C11111111B11111F1111E11F/exports/116000000005/tasks/8FEEA107FF67414E855084A7698D3C7C \ -H 'authorization: AnaplanAuthToken {token}' \ -H "Content-Type:application/json"
Response
{
"meta":{
"schema":"https://api.anaplan.com//2/0/models/F1111111C11111111B11111F1111E11F/objects/task"
},
"status":{
"code":200,
"message":"Success"
},
"task":{
"type":"taskInformation",
"taskId":"BFEC582EBD4146068FE4061831C8F0F0",
"currentStep":"Complete.",
"progress":1,
"result":{
"failureDumpAvailable":false,
"objectId":"116000000002",
"successful":true
},
"taskState":"COMPLETE"
}
}