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

# Cancel Job

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

## Request

- Base URL: `https://api.kolens.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kolens.ai/admin/jobs/{job_id}/cancel`
- Auth: none declared

Request cancellation by setting ``cancel_requested=True``.

Returns 204 once the flag is set (or was already set on a non-
terminal job). Returns 409 when the job is already in a terminal
state — there's nothing to cancel.

## Path parameters

- `job_id` string, required

## Headers

- `x-admin-secret` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kolens/apis/kolens-api.md) · [All operations](https://skmtc.dev/kolens/apis/kolens-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kolens/apis/kolens-api/revisions/5d6865ab0a24?raw)
