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

# Cancel Job

`POST /jobs/{job_qrn}/cancel`

Cancel a quantum job.

**Args:**
- **job_qrn** (string): Job QRN (qBraid Resource Name)

**Returns:**
- Object containing a confirmation message, the job QRN, and the updated status

**Raises:**
- **400**: Job is in an invalid state for cancellation or vendor is not supported
- **404**: Job is not found
- **422**: Validation error if the job_qrn parameter is invalid

## Path parameters

- `job_qrn` string, required — Job QRN (qBraid Resource Name)

## Response `202`

Successful Response

- CancelJobResponse — Response schema for job cancellation
  - `success` boolean, required — Whether the cancellation was initiated successfully
  - `data` object, required
    - `message` string, required — Confirmation message
    - `jobQrn` string, required — QRN of the job being cancelled
    - `status` string, required — Updated job status

## Other responses

- `404` — Job Not Found
- `422` — Validation Error

---

[API](https://skmtc.net/qbraid/apis/qbraid-runtime-api.md) · [All operations](https://skmtc.net/qbraid/apis/qbraid-runtime-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qbraid/qbraid-runtime-api/revisions/6e818ad19cde/schema)
