Use this to get every chunk ID and name in a file.
Method and endpoint
/workspaces/{workspaceId}/models/{modelId}/files/{fileId}/chunks
Parameters
| Parameter | Description |
workspaceId |
|
modelId |
|
fileId |
|
Curl example
curl -X GET \
https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/files/{fileId}/chunks \
-H 'authorization: AnaplanAuthToken {anaplan_auth_token}' \
-H 'Content-Type:application/json'
Response
Response 200 (application/json)
{
"meta":{
"paging":{
"currentPageSize":4,
"offset":0,
"totalSize":4
},
"schema":"https://api.anaplan.com//2/0/models/75A40874E6B64FA3AE0743278996850F/objects/chunk"
},
"status":{
"code":200,
"message":"Success"
},
"chunks":[
{
"id":"0",
"name":"Chunk 0"
},
{
"id":"1",
"name":"Chunk 1"
},
{
"id":"2",
"name":"Chunk 2"
},
{
"id":"3",
"name":"Chunk 3"
}
]
}