---
title: "POST /admin/jobs/{job_id}/cancel"
method: POST
path: "/admin/jobs/{job_id}/cancel"
tags: ["Admin"]
---

# POST /admin/jobs/{job_id}/cancel

`POST /admin/jobs/{job_id}/cancel`

## Request

- Base URL: `https://api.breeze.baby`
- URL: `https://api.breeze.baby/admin/jobs/{job_id}/cancel`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/breeze-baby/apis/breeze-api/docs/admin/jobs/:job_id/cancel/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `job_id` string, required

## Response `200`

Job cancelled successfully

- ApiCancelJobResult
  - `job_id` string, required
  - `message` string, required
  - `new_state` string, required
  - `previous_state` string, required

## Other responses

- `400`: Job cannot be cancelled (already completed, failed, or cancelled)
- `404`: Job not found
- `500`: Internal server error

---

[API](https://skmtc.dev/breeze-baby/apis/breeze-api.md) - [All operations](https://skmtc.dev/breeze-baby/apis/breeze-api/llms.txt) - [OpenAPI document](https://skmtc.dev/breeze-baby/apis/breeze-api/revisions/d0a18846aa92?raw)
