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 authentication of the form Bearer <token>, where token is your auth token.

Path parameters

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

Headers

IB-ContextstringOptional
Specify whether to use your community account or organization account to complete the request. To use your community account, define as your user ID. To use your organization account, define as your organization ID. If unspecified, defaults to community account context. See [Authorization and context identification](/api-sdk/authorization#ib-context-header) 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.