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.
Method and endpoint
/workspaces/{workspaceId}/models/{modelId}/files/{fileId}
Parameters
| Parameter | Description |
workspaceId |
|
modelId |
|
fileId |
|
Curl Example
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
Response
Response 204
The HTTP 204 No Content success response status code indicates that a request has succeeded.