---
title: "Changes to Cancel a batch"
method: POST
path: "/api/v1/batches/{batch_id}/cancel"
---

# Changes to Cancel a batch

`POST /api/v1/batches/{batch_id}/cancel`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 4 of 12 revisions.

- **2026-10-21** `c30bcb383ee8`: 11 breaking, 4 info
- **2026-10-02** `b830b79cfd52`: 3 warning, 2 info
- **2026-09-17** `6fa8242da8c2`: 1 warning, 1 info
- **2026-09-12** `22b868ef3f22`: 1 info

## Changes

- **2026-10-21** `c30bcb383ee8`: 11 breaking, 4 info
  - the response property `cancelled_at` became nullable for the status `200`
  - the response property `cancelling_at` became nullable for the status `200`
  - the response property `completed_at` became nullable for the status `200`
  - the response property `error_file_id` became nullable for the status `200`
  - the response property `errors` became nullable for the status `200`
  - the response property `expired_at` became nullable for the status `200`
  - the response property `expires_at` became nullable for the status `200`
  - the response property `failed_at` became nullable for the status `200`
  - the response property `finalizing_at` became nullable for the status `200`
  - the response property `in_progress_at` became nullable for the status `200`
  - the response property `output_file_id` became nullable for the status `200`
  - api operation id `openAiBatch_cancelBatch` removed and replaced with `cancelBatch`
  - api tag `OpenAI Batch` added
  - api tag `openAiBatch` removed
  - removed `subschema #1, subschema #2` from the `errors` response property `oneOf` list for the response status `200`
- **2026-10-02** `b830b79cfd52`: 3 warning, 2 info
  - removed the optional property `error` from the response with the `401` status
  - removed the optional property `error_class` from the response with the `401` status
  - removed the optional property `id` from the response with the `401` status
  - added the non-success response with the status `403`
  - the response property `detail` became required for the status `401`
- **2026-09-17** `6fa8242da8c2`: 1 warning, 1 info
  - deleted the `header` request parameter `Authorization`
  - the endpoint scheme security `RespanApiKey` was added to the API
- **2026-09-12** `22b868ef3f22`: 1 info
  - api operation id `cancel-batch` removed and replaced with `openAiBatch_cancelBatch`

---

[Operation](https://skmtc.dev/respan/apis/respan-api/docs/api/v1/batches/:batch_id/cancel/post.md) - [API](https://skmtc.dev/respan/apis/respan-api.md) - [Page](https://skmtc.dev/respan/apis/respan-api/changes/api/v1/batches/:batch_id/cancel/post)
