---
title: "Cancel Batch Job"
method: POST
path: "/batch/jobs/{jobId}/cancel"
tags: ["batch"]
---

# Cancel Batch Job

`POST /batch/jobs/{jobId}/cancel`

## Request

- Base URL: `https://api.mistral.ai/v1`
- URL: `https://api.mistral.ai/v1/batch/jobs/{jobId}/cancel`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/ballerina-platform/apis/mistral-ai-api/docs/batch/jobs/:jobId/cancel/post.ts> (a function with typed inputs; its response is checked against the schema)

Request the cancellation of a batch job.

## Path parameters

- `jobId` string, uuid, required

## Response `200`

OK

- BatchJobOut
  - `succeeded_requests` integer, required
  - `metadata` object, nullable
  - `failed_requests` integer, required
  - `created_at` integer, required
  - `output_file` string, uuid, nullable
  - `error_file` string, uuid, nullable
  - `input_files` string[], required
  - `completed_at` integer, nullable
  - `endpoint` string, required
  - `completed_requests` integer, required
  - `total_requests` integer, required
  - `started_at` integer, nullable
  - `model` string, required
  - `id` string, required
  - `errors` BatchError[], required
    - `count` integer
    - `message` string, required
  - `object` 'batch'
  - `status` 'QUEUED' | 'RUNNING' | 'SUCCESS' | 'FAILED' | 'TIMEOUT_EXCEEDED' | 'CANCELLATION_REQUESTED' | 'CANCELLED', required

## Changes

- **2026-07-17** `062746a4d99e`: 1 info
  - endpoint added
- **2025-03-12** `a88399f645b2`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/ballerina-platform/apis/mistral-ai-api/changes/batch/jobs/:jobId/cancel/post.md)

---

[API](https://skmtc.dev/ballerina-platform/apis/mistral-ai-api.md) - [All operations](https://skmtc.dev/ballerina-platform/apis/mistral-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ballerina-platform/apis/mistral-ai-api/revisions/062746a4d99e?raw)
