---
title: "Cancel Job"
method: DELETE
path: "/api/v1/jobs/{job_id}"
tags: ["jobs"]
---

# Cancel Job

`DELETE /api/v1/jobs/{job_id}`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/jobs/{job_id}`
- Auth: none declared

Cancel a job.

Args:
    job_id: Job identifier (UUID)
    ctx: Application context with user and session
    job_adapter: Job adapter dependency

Returns:
    StandardResponse: Cancellation result

Raises:
    NotFoundError: If job not found or cannot be cancelled

## Path parameters

- `job_id` string, uuid, required

## Headers

- `Authorization` string

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

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