Run this call to obtain the importDataSourceId, which matches the file ID you need for subsequent calls.
Method and endpoint
https://api.anaplan.com/2/0/workspaces/{workspaceID}/models/{modelID}/files
Parameters
Parameter | Description |
AnaplanAuthToken:{token} | Your Anaplan authentication token value. |
workspaceID | The workspace ID. |
modelID | The model ID. |
Curl example
curl -X GET \
https://api.anaplan.com/2/0/workspaces/{workspaceID}/models/{modelID}/files \ -H 'Authorization: AnaplanAuthToken:{token}'
Response
{
"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"
}
]
...
}