Once you have uploaded all of the file chunks, send this POST call to indicate the upload is complete.

Method and endpoint

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

POST

Parameters

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

Curl example

curl -X POST \
https://api.anaplan.com/2/0/workspaces/0a800b00e0000000f000001eab0d0000/models/F1111111C11111111B11111F1111E11F/files/113000000000/complete \
-H 'Authorization: AnaplanAuthToken {token}' \
-H 'Content-Type: application/json' \
-d '{"id":"113000000000","name":"Organization.txt","chunkCount":-1,"firstDataRow":2,"headerRow":1}'

Response

{

   "meta":{

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

   },

   "status":{

      "code":200,

      "message":"Success"

   },

   "file":{

      "id":"113000000000",

      "name":"Organization.txt",

      "chunkCount":2,

      "delimiter":"\"",

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

      "firstDataRow":2,

      "format":"txt",

      "headerRow":1,

      "separator":"\t"

   }

}

Disclaimer

We update Anapedia regularly to provide the most up-to-date instructions.