Load your import file chunks on to the server in sequential order, starting with chunk 0.
For example:
Chunk 1 - PUT /chunks/0
Chunk 2 - PUT /chunks/1
Chunk 3 - PUT /chunks/2
Iterate until you have uploaded all chunk files.
Method and endpoint
https://api.anaplan.com/2/0/workspaces/{workspaceID}/models/{modelID}/files/{fileID}/chunks/{chunkID}
Parameters
Parameter | Description |
AnaplanAuthToken:{token} | Your Anaplan authentication token value. |
workspaceID | The workspace ID |
modelID | The model ID |
fileID | The file ID |
chunkID | The file chunk ID. The first chunk is 0. |
content length | The size of the file chunk, in bytes. |
Content type | Set to Content-Type:application/octet-stream |
chunk file | The name of the chunk file (for example, chunk-aa) |
Curl example
In this sequence of PUT requests, each chunk file name is assigned a different chunk id.
curl -X PUT \
https://api.anaplan.com/2/0/workspaces/0a800b00e0000000f000001eab0d0000/models/F1111111C11111111B11111F1111E11F/files/113000000020/chunks/0 \
-H 'Authorization: AnaplanAuthToken {token}' \
-H 'Content-Type: application/octet-stream' \
--upload-file {chunk file}
Response
This call generates a 204 response. In a terminal, no response displays.