---
title: "Cancel a job group"
method: POST
path: "/jobs/group/{group_qrn}/cancel"
tags: ["Jobs"]
---

# Cancel a job group

`POST /jobs/group/{group_qrn}/cancel`

## Request

- Base URL: `https://api-v2.qbraid.com/api/v1`
- URL: `https://api-v2.qbraid.com/api/v1/jobs/group/{group_qrn}/cancel`
- Auth: API key in header `X-API-KEY`

Cancel a group and all of its non-terminal child jobs. A CLOSED group can still be cancelled.

## Path parameters

- `group_qrn` string, required

## Response `200`

Success.

- JobGroupResponse
  - `success` boolean, required
  - `data` JobGroup, required
    - `_id` string, required
    - `groupJobQrn` string, required
    - `name` string
    - `status` 'OPEN' | 'CLOSED' | 'COMPLETED' | 'FAILED' | 'CANCELLED', required
    - `organizationUserId` string, required
    - `jobCount` integer, required
    - `completedCount` integer, required
    - `failedCount` integer, required
    - `cancelledCount` integer, required
    - `totalEstimatedCost` number
    - `totalCost` number
    - `maxTTL` integer
    - `timeStamps` object
      - `createdAt` string, date-time, required
      - `endedAt` string, date-time
      - `executionDuration` number
    - `tags` object
    - `metadata` object

## Other responses

- `404`: Group not found.
- `409`: Group is already COMPLETED, FAILED, or CANCELLED.

## Changes

- **2026-11-03** `20848d926124`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/qbraid/apis/qbraid-runtime-api/changes/jobs/group/:group_qrn/cancel/post.md)

---

[API](https://skmtc.dev/qbraid/apis/qbraid-runtime-api.md) - [All operations](https://skmtc.dev/qbraid/apis/qbraid-runtime-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qbraid/apis/qbraid-runtime-api/revisions/20848d926124?raw)
