Examples

$ curl -i \
  -H 'Accept: application/json; version=1' \
  -H "Authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjQyLCJpYXQiOjE0NjM2OTQ4MjN9.k48v-R-un93KdIXqp9Zi12JOGJCu8uibtrWjscFCTqc" \
  -X POST \
  -H 'Content-type: application/json' \
  -d '{"upload_id": "example-upload-id", "parts": [{"part_number": 1, "etag": "etag1"}, {"part_number": 2, "etag": "etag2"}]}' \
  https://api.record360.com/api/users/multipart_upload_complete/new_file_42

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
  "id": "new_file_42",
  "location": "https://bucket.s3.amazonaws.com/users/42/new_file_42",
  "etag": "final-etag",
  "filesize": 1048576,
  "checksum": "abc123def456"
}

Params

Param name Description
file_id
required

UUID that identifies the final uploaded file. Must match the file_id used in multipart_upload_start.

Validations:

  • Must be a String

upload_id
required

AWS S3-generated identifier for tracking the multipart upload session. This is separate from the file_id to allow retrying failed uploads.

Validations:

  • Must be a String

parts
required

Array of uploaded parts with ETags

Validations:

  • Must be an Array of nested elements

parts[part_number]
required

Part number (1-based)

Validations:

  • Must be a Integer

parts[etag]
required

ETag of the uploaded part

Validations:

  • Must be a String