POST
/api/v1/files/uploads/{upload_id}/completeFinish a file upload
Publishes the file once every part is uploaded. The server checks the SHA-256 first. 200 returns the link. 202 ({"state": "verifying"}) means the check is still running: check the upload until state is done. Calling it again on a finished upload returns the same result.
Path parameters
#upload_idstringRequiredThe
upload_idthat Start a file upload returned.
Request body
#application/json
partsarray of objectEach part's number and the
ETagstorage returned when you uploaded it. Up to 10,000 items.2 fields inside
part_numberintegerRequiredFrom 1 to 10,000.
etagstringRequired1–200 characters.
Responses
#200Published. Returns the link.202Still checking the file. Poll the upload's status.401No token, or the token is revoked or mistyped.422The request didn't validate.detaillists each problem, with where it is (loc) and why (msg).429Too many requests from your IP address. Wait the seconds inRetry-After.