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

# Cancel Batch Job

`POST /v1/batch/jobs/{job_id}/cancel`

Request the cancellation of a batch job.

## Path parameters

- `job_id` string, uuid, required

## Response `200`

OK

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

---

[API](https://skmtc.net/mistral/apis/mistral-ai-api.md) · [All operations](https://skmtc.net/mistral/apis/mistral-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mistral/mistral-ai-api/revisions/933c4ebdcd72/schema)
