This gets a list of both the import and export files for a model. You can identify a file by its metadata and ID. Run this call to obtain the file ID you need for subsequent calls.

GET

https://api.anaplan.com/2/0/workspaces/{workspaceID}/models/{modelID}/files

ParameterDescription
AnaplanAuthToken:{token}Your Anaplan authentication token value.
workspaceIDThe workspace ID.
modelIDThe model ID.

curl -X GET \
https://api.anaplan.com/2/0/workspaces/{workspaceID}/models/{modelID}/files \ -H 'Authorization: AnaplanAuthToken:{token}'

{

   "meta":{

      "paging":{

         "currentPageSize":23,

         "offset":0,

         "totalSize":23

      },

      "schema":"https://api.anaplan.com/2/0/models/F1111111C11111111B11111F1111E11F/objects/file"

   },

   "status":{

      "code":200,

      "message":"Success"

   },

   "files":[

      {

         "id":"113000000000",

         "name":"Organization.txt",

         "chunkCount":0,

         "delimiter":"\"",

         "encoding":"ISO-8859-1",

         "firstDataRow":2,

         "format":"txt",

         "headerRow":1,

         "separator":"\t"

      },

      {

         "id":"113000000001",

         "name":"Sales Roll Up.txt",

         "chunkCount":0,

         "delimiter":"\"",

         "encoding":"ISO-8859-1",

         "firstDataRow":2,

         "format":"txt",

         "headerRow":1,

         "separator":"\t"

      }

   ]

}