---
title: "Cancel Job"
method: POST
path: "/api/businesses/{business_id}/workbook/cancel"
tags: ["Data Cleaning"]
---

# Cancel Job

`POST /api/businesses/{business_id}/workbook/cancel`

## Request

- Base URL: `https://api.flagpost.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.flagpost.ai/api/businesses/{business_id}/workbook/cancel`
- Auth: HTTP bearer

Cancel the current in-progress data cleaning job for a business.

Sets the domain job status to cancelled; the worker checks this between
pipeline stages and exits.

## Path parameters

- `business_id` string, required

## Response `200`

Successful Response

- DataCleaningStatusResponse: Status response for data cleaning operations.
  - `success` boolean, required
  - `message` string, required
  - `status` string
  - `download_url` string, nullable
  - `assumptions_count` integer
  - `assumptions_summary` string, nullable
  - `source_documents` string[]
  - `temporal_mismatch` string, nullable
  - `job_id` string, nullable
  - `data_cleaning_job_id` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/flagpost/apis/flagpost-api.md) - [All operations](https://skmtc.dev/flagpost/apis/flagpost-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flagpost/apis/flagpost-api/revisions/0308cef485ca?raw)
