---
title: "Commit or abort multipart session"
method: POST
path: "/v2/batches/multipart-upload/sessions/{session_id}"
tags: ["batches"]
---

# Commit or abort multipart session

`POST /v2/batches/multipart-upload/sessions/{session_id}`

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.

## Path parameters

- `session_id` string, required

## Headers

- `Authorization` string, required
- `IB-Context` string

## Request body

- object
  - `action` 'commit' | 'abort', required — Set to `commit` to finalize the upload or `abort` to cancel it.
  - `parts` V2BatchesMultipartUploadSessionsSessionIdPostRequestBodyContentApplicationJsonSchemaPartsItems[] — Required when action is `commit`. List of all uploaded parts in order.
    - `part_num` integer, required — The part number of the uploaded part.
    - `part_id` string, required — The part ID returned when the part was uploaded.

## Response `201`

The multipart upload session was successfully committed or aborted.

- BatchesCommitMultipartUploadSessionResponse201 — Empty response body

## Changes

> 3 revisions in range; 1 could not be searched.

- **2026-08-06** `3a4f46d48141` — 1 info
  - api operation id `commit-multipart-upload-session` removed and replaced with `commitMultipartUploadSession`

[Change history](https://skmtc.dev/instabase/apis/api-reference/changes/v2/batches/multipart-upload/sessions/:session_id/post.md)

---

[API](https://skmtc.dev/instabase/apis/api-reference.md) · [All operations](https://skmtc.dev/instabase/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/instabase/api-reference/revisions/804f3e7e0182/schema)
