Complete an upload once its bytes are in storage
POST
apiKeyheader
x-api-key<token>application/json- body
uploadId*stringFormat
uuidchecksum*stringMatch
^[A-Za-z0-9+/]{43}=$multipartParts?array<>input?OK
application/json- response
uploadId*stringFormat
uuidstatus*unknownobjectKey*stringpublicUrl*stringidempotent*booleanmediaId*|nulltype?stringValue in
"IMAGE""GIF""VIDEO"bytes?integerRange
-9007199254740991 <= value <= 9007199254740991variants*|nullvariantsStatus*|nullavatarUrl*string|nullcurl -X POST 'https://app.postonus.com/api/v1/uploads/complete' \ -H 'Content-Type: application/json' \ -d '{ "uploadId": "ef523ba8-509e-47af-8e2c-5fa751596497", "checksum": "string"}'Example Response
{ "uploadId": "ef523ba8-509e-47af-8e2c-5fa751596497", "status": "completed", "objectKey": "string", "publicUrl": "string", "idempotent": true, "mediaId": "5a8ffac5-2288-485d-b463-90c3cd9941ad", "type": "IMAGE", "bytes": -9007199254740991, "variants": { "1:1": { "url": "string", "width": -9007199254740991, "height": -9007199254740991, "sizeBytes": 0, "objectKey": "string" }, "4:5": { "url": "string", "width": -9007199254740991, "height": -9007199254740991, "sizeBytes": 0, "objectKey": "string" }, "9:16": { "url": "string", "width": -9007199254740991, "height": -9007199254740991, "sizeBytes": 0, "objectKey": "string" }, "1.91:1": { "url": "string", "width": -9007199254740991, "height": -9007199254740991, "sizeBytes": 0, "objectKey": "string" }, "source": { "url": "string", "width": -9007199254740991, "height": -9007199254740991, "sizeBytes": 0, "objectKey": "string" } }, "variantsStatus": "pending", "avatarUrl": "string"}