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

# Cancel Job

`POST /jobs/{job_id}:cancel`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/jobs/{job_id}:cancel`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `/authorize`, token URL `/oauth/token`)

Cancel an active job.

A held execution answers ``409``: it settles only through its hold (decide,
withdraw or expiry), never by cancelling the job.

## Path parameters

- `job_id` string, required: ID of the job.

## Response `200`

Successful Response

- JobResponse: Job representation in API responses.
  - `_links` JobLinksResponse, required: Hypermedia links for a job.
    - `execution` string, nullable: URL of the related execution record; null if none.
    - `result` string, nullable: URL of the job result; null until the job has completed.
    - `self` string, required: URL of this job.
  - `actor_id` string, nullable: Subject that enqueued the job. Null only for legacy rows with no actor.
  - `actor_type` string, required: Kind of actor that enqueued the job: 'user' or 'agent'. Opaque string: historical rows may carry a retired type such as 'service_account'.
  - `created_at` string, date-time, required: When the job was created (RFC 3339).
  - `error` string, nullable: Error message recorded for the job; null if none.
  - `execution_id` string, nullable: ID of the execution record linked to the job, if any.
  - `job_id` string, required: Unique ID of the job.
  - `kind` string, required: Kind of job, e.g. `import` or `execution`.
  - `status` string, required: Lifecycle state: `queued`, `running`, `completed`, `failed`, `cancelled` or `dead_letter`.
  - `updated_at` string, date-time, nullable: When the job was last updated (RFC 3339); null if never updated.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Unprocessable Entity
- `500`: Internal Server Error
- `503`: Service Unavailable

## Changes

> 179 revisions in range; 2 not diffed.

- **2026-10-16** `b51ab3eec2ce`: 2 info
  - added the non-success response with the status `404`
  - added the non-success response with the status `409`
- **2026-10-14** `c516481e6ed8`: 1 info
  - the endpoint scheme security `OAuth2` was added to the API
- **2026-10-12** `3a4d8404e223`: 2 info
  - added the optional property `actor_id` to the response with the `200` status
  - added the required property `actor_type` to the response with the `200` status
- **2026-07-01** `d65fcba0d25a`: 1 info
  - endpoint added
- **2026-04-13** `76e8f6063728`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/jentic/apis/jentic-control-plane-api/changes/jobs/:job_id:cancel/post.md)

---

[API](https://skmtc.dev/jentic/apis/jentic-control-plane-api.md) · [All operations](https://skmtc.dev/jentic/apis/jentic-control-plane-api/llms.txt) · [OpenAPI document](https://skmtc.dev/jentic/apis/jentic-control-plane-api/revisions/d201bee0808d?raw)
