Uploads the complete source file in one request.

This request provides a simple option for smaller files where chunking is unnecessary.

Note: You can't compress a file that you are uploading as a single file. If the file is smaller than 1 MB, we recommend you PUT it onto the server by streaming it as an octet stream.

PUT

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

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 PUT \
https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/files/{fileId} \
-H 'authorization: AnaplanAuthToken {auth_token}' \
-H 'Content-Type:application/octet-stream' --upload-file Tests.txt

The HTTP 204 No Content success response status code indicates that a request has succeeded.