Use this to run imports.
This enables an external system to load staged data into Anaplan as part of an automated workflow.
Note: If GET does not return any tasks, the import is not running or might have completed. Tasks sort in ascending order of creation time, with the newest task at the top of the list. To sort in descending order, append ?sort =- creationTime to the URL.
Method and endpoint
/workspaces/{workspaceId}/models/{modelId}/imports/{importId}/tasks
Parameters
| Parameter | Description |
workspaceId |
|
modelId |
|
importId |
|
Curl example
curl -X POST \
https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/imports/{importId}/tasks \
-H 'authorization: AnaplanAuthToken {anaplan_auth_token}' \
-H 'Content-Type:application/json' \
-d "{\"localeName\": \"en_US\"}"
Response
Response 200 (application/json)
{
"taskId" : "5E6331685CC648A29B725923B8FAEA1C"
}