Complete multipart upload

Completes a multipart file upload. This endpoint must be called by the client when an 'initMultiPartUpload' operation (POST /files/initmultipartupload) was called, and all file content parts have been successfully uploaded using PUT for all upload URLs. Either id or externalId must be specified in the request body, but not both. The uploadId is also required. The values for these properties can be retrieved from the response of the initMultiPartUpload operation.

Request throttling

This endpoint is a subject of the new throttling schema (limited request rate and concurrency). Please check Files resource description for more information.

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
Request Body schema: application/json
required

The JSON request body which specifies which file id/externalId and uploadId to complete the multipart upload for.

One of:
id
integer <int64> (CogniteInternalId) [ 1 .. 9007199254740991 ]

A server-generated ID for the object.

uploadId
required
string

A server-generated identifier returned by 'files/initmultipartupload', used by 'files/completemultipartupload' for validation purposes.

Responses
200

Empty response.

400

The response for a failed request.

post/files/completemultipartupload
Request samples
application/json
{
  • "id": 1,
  • "uploadId": "string"
}
Response samples
application/json
{ }