Complete Upload.

Complete/Cancel multipart upload once all parts are uploaded. This endpoint must be called after creating asset when the file is sent in chunks of 100MB each. For files 100MB or less in size this operation is not needed.

SecurityApiKeyAuth or BasicAuth
Request
header Parameters
X-API-Key
required
string

Customer-specific API key required to invoke API.

Authorization
required
string

Provided by Authentication Token creation operation

AccessToken
required
string

JWT token provided by Authentication Token creation operation.

Content-Type
required
string
Value: "application/json"
Request Body schema: application/json
required

The Request Body must be a JSON array.

fileId
string <uuid>
filename
string
filesize
integer
action
string

Either complete or cancel as the action to finalize the multipart upload. This field is case sensitive.

Enum: "complete" "cancel"
originalFileId
string <uuid>
uploadId
string
Array of objects (AssetMultipartUploadRequest_parts)
Responses
200

Successful operation

400

Error occurred

401

Unauthorized. Missing Authorization or AccessToken or expired token

403

Forbidden. Missing X-API-key

post/asset/complete
Request samples
application/json
{
  • "fileId": "a1c6a2ab-4b01-4253-b4c9-70e04b3b48fc",
  • "filename": "string",
  • "filesize": 335226108,
  • "action": "complete",
  • "originalFileId": "1ebf63d7-819a-4a33-a1cd-00df81f55bd3",
  • "uploadId": "gR5XHJZpuDv8UizdpSGuwONje0GbMHnCWXS5zTTVkyVINURV6iraWLhpM7Sy7oy65utAgPcm2FfM4fRp4oVga4ggEzD811aS1tke_F0iIIXX1kV7m6UouytsNE0oL8fzo2Zr2JCqwRyhFTXp98zjdQ--",
  • "parts": [
    ]
}
Response samples
application/json
{
  • "fileId": "a1c6a2ab-4b01-4253-b4c9-70e04b3b48fc",
  • "filename": "string",
  • "action": "Complete/Cancel",
  • "originalFileId": "1ebf63d7-819a-4a33-a1cd-00df81f55bd3",
  • "uploadId": "gR5XHJZpuDv8UizdpSGuwONje0GbMHnCWXS5zTTVkyVINURV6iraWLhpM7Sy7oy65utAgPcm2FfM4fRp4oVga4ggEzD811aS1tke_F0iIIXX1kV7m6UouytsNE0oL8fzo2Zr2JCqwRyhFTXp98zjdQ--",
  • "s3Key": "masters/843ec17f-9491-4cfa-b840-faa299973207/2-vid.mp4",
  • "status": "success"
}