Use this endpoint to return a list of sync tasks for a target model, where the tasks are either in progress, or they were completed within the last 48 hours. 

For best performance and outcomes, make all API calls to your closest regional server. To learn more about this, read URL, IP, and allowlist requirements.

Note: You must be a Workspace Administrator for both the target and source model workspaces. Additionally, ensure you have access privileges to both models.  

Each model keeps a maximum history of about 20,000 tasks. When it reaches this limit, older records are removed automatically, which may happen before the 48-hour window.

GET

/models/{modelGuid}/alm/syncTasks

Path parameterDetails
modelGuidID of the model to check for the sync task information.

curl -L -X GET 'https://api.anaplan.com/2/0/models/{modelGuid}/alm/syncTasks' -H 'Authorization: AnaplanAuthToken {anaplanAuthToken}'

A successful request returns information on the taskId, taskState, and creationTime of the sync tasks for that model.

For example:

{
  "meta": {
    "schema": "https://api.anaplan.com/2/0/objects/task"
  },
  "status": {
    "code": 200,
    "message": "Success"
  },
  "tasks": [
    {
      "taskId": "4190D7569A21444FAADC5406E2A8D005",
      "taskState": "COMPLETE",
      "creationTime": 1618396930895
    },
    {
      "taskId": "B5313AB57DD642D6938E99CA804A64EC",
      "taskState": "COMPLETE",
      "creationTime": 1618396932385
    }
  ]
}

Review the ALM API troubleshooting guide to resolve any error responses from API calls.