Confirms that all chunks have been uploaded and marks the file as ready for use.
This finalizes the transfer so the uploaded file can be consumed by an import action.
Method and endpoint
/workspaces/{workspaceId}/models/{modelId}/files/{fileId}/complete
Parameters
| Parameter | Description |
workspaceId |
|
modelId |
|
fileId |
|
Curl example
curl -X POST \
https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/files/{fileId}/complete \
-H 'authorization: AnaplanAuthToken {anaplan_auth_token}' \
-H 'Content-Type:application/json' \
-d '{"id":"113000000008","name":"Tests.txt","chunkCount" : 1,"firstDataRow":2,"headerRow":1}'
Response
Response 200 (application/json)
{
"meta": {
"schema": "https://api.anaplan.com/2/0/models/75A40874E6B64FA3AE0743278996850F/objects/file"
},
"status": {
"code": 200,
"message": "Success"
},
"file": {
"id": "113000000008",
"name": "achunky-aa",
"chunkCount": 1,
"delimiter": "\"",
"encoding": "ISO-8859-1",
"firstDataRow": 2,
"format": "txt",
"headerRow": 1,
"separator": "\t"
}
}