Skip to main content
POST
/
s3
/
multipart
/
complete
curl -X POST https://app.drime.cloud/api/v1/s3/multipart/complete \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "uploads/1e4cbca8.../1e4cbca8...",
    "uploadId": "AFNhWKh6Cn6f...",
    "parts": [
      {"PartNumber": 1, "ETag": "\"22b1d5721320f9da081e4987f0e0ce65\""},
      {"PartNumber": 2, "ETag": "\"479df46a73824ca1a5e44efe64d3dbb7\""}
    ]
  }'
{
  "location": "https://xxx.r2.cloudflarestorage.com/drimestorage/uploads%2F1e4cbca8...%2F1e4cbca8...",
  "status": "success"
}

Overview

Completes a multipart upload by assembling all uploaded parts. After this, call /s3/entries to register the file in Drime.

Request Body

key
string
required
S3 key from createMultipartUpload
uploadId
string
required
Upload ID from createMultipartUpload
parts
array
required
Array of uploaded parts with their ETags

Response

location
string
Final S3 location of the assembled file
status
string
Request status (success)
curl -X POST https://app.drime.cloud/api/v1/s3/multipart/complete \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "uploads/1e4cbca8.../1e4cbca8...",
    "uploadId": "AFNhWKh6Cn6f...",
    "parts": [
      {"PartNumber": 1, "ETag": "\"22b1d5721320f9da081e4987f0e0ce65\""},
      {"PartNumber": 2, "ETag": "\"479df46a73824ca1a5e44efe64d3dbb7\""}
    ]
  }'
{
  "location": "https://xxx.r2.cloudflarestorage.com/drimestorage/uploads%2F1e4cbca8...%2F1e4cbca8...",
  "status": "success"
}
ETags must include the surrounding quotes (e.g., "abc123"). These are returned in the S3 response headers.