Commit or abort multipart session

After uploading all parts to a multipart upload session, use this endpoint to commit and close the session, or abort the session. When committing, provide all the uploaded parts in the correct order. When aborting, the session and all uploaded parts are discarded.

Authentication

AuthorizationBearer
Bearer HTTP authentication.

Path parameters

session_idstringRequired
The session ID obtained from the Start multipart upload session response.

Headers

IB-ContextstringOptional

Typically your organization ID. See Authorization and context identification for details.

Request

This endpoint expects an object.
actionenumRequired

Set to commit to finalize the upload or abort to cancel it.

Allowed values:
partslist of objectsOptional

Required when action is commit. List of all uploaded parts in order.

Response

The multipart upload session was successfully committed or aborted.