---
title: "Cancel a background job (best effort)"
method: POST
path: "/assistant/jobs/{jobId}/cancel"
tags: ["Assistant"]
---

# Cancel a background job (best effort)

`POST /assistant/jobs/{jobId}/cancel`

A queued job never runs; a running one is abandoned at its next checkpoint. No continuation follows, and the job's workflow is cancelled.

## Path parameters

- `jobId` string, required

## Response `200`

The job's status after the cancel

- AssistantJobCancelResponse
  - `data` object, required
    - `jobId` string, required
    - `status` string, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

## Changes

- **2026-10-01** `b4751fd15397` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/greentally/apis/esgai-api/changes/assistant/jobs/:jobId/cancel/post.md)

---

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