This call returns the task ID associated with the specified process ID. You can use that process ID to monitor the progress of the task. The execution of a process, like any other action (such as an import, export, or delete) is a task you POST on to the server.
Method and endpoint
https://api.anaplan.com/2/0/workspaces/{workspaceID}/models/{modelID}/processes/{processID}/tasks
Parameters
Parameter | Description |
AnaplanAuthToken:{token} | Your Anaplan authentication token value. |
Content-Type:application/json | Sets the content type to JSON. |
workspaceID | The workspace ID |
modelID | The model ID |
processID | The process ID |
-d '{"localeName": "en_US"}' | Seta the locale to US English. |
Curl example
curl -X POST \ https://api.anaplan.com/2/0/workspaces/0a800b00e0000000f000001eab0d0000/models/F1111111C11111111B11111F1111E11F/processes/118000000002/tasks -H 'authorization: AnaplanAuthToken {token}' \ -H "Content-Type:application/json" \ -d '{"localeName": "en_US"}'
Response
{
"meta":{
"schema":"https://api.anaplan.com/2/0/models/F1111111C11111111B11111F1111E11F/objects/task"
},
"status":{
"code":200,
"message":"Success"
},
"task":{
"taskId":"E36791D709C44246878B708B4C76A1F9",
"taskState":"NOT_STARTED",
"creationTime":1570823579809
}
}