Complete Upload

This section allows you to complete and confirm a video for processing

Complete Video Upload

patch

Send metadata of the multi-part uploads to complete the upload and begin processing the video.

Optionally include the MD5 hash of the source video file to validate successful upload before processing.

Request body

Property

Type

Description

uploadResults

Array

An array of part number and ETag pairs of the uploaded parts. ETags are returned by S3 upon upload of the part.

uploadResults.*.partNum

Integer

Part number of the uploaded part, starting from 1

uploadResults.*.eTag

String

eTag value returned by S3 upon upload of the part

Authorizations
X-API-KeystringRequired
Path parameters
requestIdstring · uuidRequiredExample: c1f96dc2-c448-00e6-82ed-14ecb6403c62
Body
md5HashstringOptional

MD5 hash of the source video file in hex

Example: 4d186321c1a7f0f354b297e8914ab240
Responses
202

Successful response

application/json
patch
/video/{requestId}/complete-upload/
PATCH /video/{requestId}/complete-upload/ HTTP/1.1
Host: api.topazlabs.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 183

{
  "md5Hash": "4d186321c1a7f0f354b297e8914ab240",
  "uploadResults": [
    {
      "partNum": 1,
      "eTag": "ff00a2c854712e4b4765eeefa084baa5-305"
    },
    {
      "partNum": 2,
      "eTag": "92ee1d92cda0f9f8de4429c9596773aa-34"
    }
  ]
}
{
  "message": "Processing has been queued"
}

Last updated