This creates a task with the specified exportID and returns the newly-created taskID.
Method and endpoint
/workspaces/{workspaceId}/models/{modelId}/exports/{exportId}/tasks
Parameters
| Parameter | Description |
workspaceId |
|
modelId |
|
exportId |
|
| Parameter | Description |
workspaceId |
|
modelId |
|
exportId |
|
Curl Example
curl -X POST \
https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/exports/{exportId}/tasks \
-H 'authorization: AnaplanAuthToken {anaplan_auth_token}' \
-H 'Content-Type:application/json' \
-d '{"localeName": "en_US"}'
Response
Response 200 (application/json)
{
"meta":{
"schema":"https://api.anaplan.com//2/0/models/736367E9DB484E3AB3A50C3704FD33ED/objects/task"
},
"status":{
"code":200,
"message":"Success"
},
"task":{
"taskId":"F362B99442C54425970E200037D48A91"
}
}
Get a list of the export tasks
Request
curl -X GET \
https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/exports/{exportId}/tasks \
-H 'authorization: AnaplanAuthToken {anaplan_auth_token}' \
-H 'Content-Type:application/json'
Headers
Authorization:AnaplanAuthToken {anaplan_auth_token}Content-Type:application/json
Parameters
| Parameter | Description |
workspaceId |
|
modelId |
|
exportId |
|
Response 200 (application/json)
{
"meta":{
"paging":{
"currentPageSize":2,
"offset":0,
"totalSize":2
},
"schema":"https://api.anaplan.com//2/0/models/736367E9DB484E3AB3A50C3704FD33ED/objects/task"
},
"status":{
"code":200,
"message":"Success"
},
"tasks":[
{
"taskId":"08990C16C3464583B6E16BD851E0F8AE",
"taskState":"IN_PROGRESS",
"creationTime":1535145394668
}
]
}