1. Data integration
  2. Anaplan API Guide and Reference
  3. Use the bulk APIs
  4. Perform an import action
  5. Initiate an import action
  6. Start the import action

This call returns the task ID associated with the import ID that you specify. In a future step, you can use that task ID to monitor the progress of the task.
The execution of an import, like any other action, such as an export, a process, or a delete, is a task you POST onto the server.  This returns a task ID you will need for a subsequent step.

Method and endpoint

https://api.anaplan.com/2/0/workspaces/{workspaceID}/models/{modelID}/imports/{importID}/tasks

POST

Parameters

ParameterDescription
AnaplanAuthToken:{token}Your Anaplan authentication token value.
workspaceIDThe workspace ID
modelIDThe model ID
importIDThe import ID obtained in the pervious step.
localeSet to set to -d '{"localeName": "en_US"}'

Curl example

curl -X POST \ https://api.anaplan.com/2/0/workspaces/0a800b00e0000000f000001eab0d0000/models/F1111111C11111111B11111F1111E11F/imports/112000000007/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":"16605AE88D1D46EDB88FD12DFBA867A9",

      "taskState":"NOT_STARTED",

      "creationTime":1571258416552

   }

}