Use this to get import IDs.

This helps an integration identify the correct saved import action before attempting to run it.

GET

/workspaces/{workspaceId}/models/{modelId}/imports

ParameterDescription
workspaceId
  • Required
  • Type: string
  • Description: The workspace ID
  • Example: 8a8b8c8d8e8f8g8i
modelId
  • Required
  • Type: string
  • Description: The model ID
  • Example: 75A40874E6B64FA3AE0743278996850F

curl -X GET \
https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/imports \
-H 'authorization: AnaplanAuthToken {anaplan_auth_token}' \
-H 'Content-Type:application/json'

{
  "meta": {
    "paging": {
      "currentPageSize": 8,
      "offset": 0,
      "totalSize": 8
    },
    "schema": "https://api.anaplan.com//2/0/models/75A40874E6B64FA3AE0743278996850F/objects/import"
  },
  "status": {
    "code": 200,
    "message": "Success"
  },
  "imports": [
    {
    "id": "112000000007",
    "name": "ORG2Test from Organization.txt",
    "importDataSourceId": "113000000006",
    "importType": "HIERARCHY_DATA"
    }
  ]
}