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.

POST

/workspaces/{workspaceId}/models/{modelId}/files/{fileId}/complete

ParameterDescription
workspaceId
  • Required
  • Type: string
  • Description: The workspace Id
  • Example: 8a8b8c8d8e8f8g8i
modelId
  • Required
  • Type: string
  • Description: The model Id
  • Example: FC12345678912343455667
fileId
  • Required
  • Type: number
  • Description: The file Id
  • Example: 113000000008

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}'

{
  "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"
  }
}