Media

Finish a multipart upload.

post/v1/complete_multipart_upload

Request

  • Base URL: https://partner.mindupload.app
  • URL: https://partner.mindupload.app/v1/complete_multipart_upload
  • Auth: API key in header X-Partner-Key

Request body

preferred_languagestring nullable

BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages.

usernamestring nullable

The end-user's username.

passwordstring nullable

The end-user's password on first sign-in. After login/register, send the returned session token (JWT) here instead — the field accepts either, and reusing the token keeps raw passwords out of your storage.

r2_keystring nullable

Opaque media object key returned by upload-start operations and reused for multipart upload calls.

upload_idstring nullable

Multipart upload session id returned by request_multipart_upload.

partsobject[] nullable

The successfully uploaded parts, using the part_number and etag returned by each part upload.

Example request

{
  "parts": [
    {
      "part_number": 1,
      "etag": "\"9b2cf535f27731c974343645a3985328\""
    },
    {
      "part_number": 2,
      "etag": "\"4c6426ac7ef186464ecbb0d81cbfcb1e\""
    }
  ]
}

Response

Result envelope — check the success field.

successboolean

Whether the call succeeded.

error_messagestring nullable

Human-readable reason when success is false.

error_codestring
media_urlstring nullable

Media URL returned by this operation; use signed read URLs unchanged.

Changes

No recorded changes to this operation across all 2 revisions of this API.