POST/api/v1/files/uploads/{upload_id}/complete

Finish 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.

API token required60 per minute per IPMCP: complete_uploadCLI: markdrop upload
Code samples and Try it

Path parameters

#

Request body

#

application/json

  • partsarray of object

    Each part's number and the ETag storage returned when you uploaded it. Up to 10,000 items.

    2 fields inside
    • part_numberintegerRequired

      From 1 to 10,000.

    • etagstringRequired

      1–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. detail lists each problem, with where it is (loc) and why (msg).
  • 429Too many requests from your IP address. Wait the seconds in Retry-After.
Did this page help?