Skip to content
TALA
Esc
navigateopen⌘Jpreview

Complete multipart upload and save asset metadata

POST/api/upload/complete
Authorization
AuthorizationBearer token (JWT) · headerrequired
Header parameters
x-organization-idstring
Target organization id. Defaults to the caller's personal organization when omitted.
Request body
requiredapplication/json
uploadIdstringrequired
keystringrequired
contentTypestringrequired
partsPartDto[]required
Show properties
Array of PartDto
partNumbernumberrequired
eTagstringrequired
collectionIdstringrequired
Responses
200File successfully uploaded and metadata saved in database
any
400Bad Request
any
500Internal Server Error
any
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST "http://localhost:8000/api/upload/complete" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "uploadId": "upload123",
  "key": "collection/CL01/098ujhbmnkj809/example.png",
  "contentType": "image/png",
  "parts": [
    {
      "partNumber": 1,
      "eTag": "etag123"
    }
  ],
  "collectionId": "CL01"
}'
Response
{
  "message": "Upload completed successfully",
  "data": {
    "id": "ASp9Lm2xK7",
    "assetName": "example-image.png",
    "assetType": "image/png",
    "assetShortUrl": "https://assets.tala.com/example-image.png",
    "assetLongUrl": "https://tala-store.s3.amazonaws.com/example-image.png?...",
    "createdAt": "2026-04-03T16:30:00Z"
  }
}