---
title: "Cancel in-flight dashboard generation"
method: POST
path: "/dashboards/{dashboard_id}/cancel-generation"
tags: ["Dashboard"]
---

# Cancel in-flight dashboard generation

`POST /dashboards/{dashboard_id}/cancel-generation`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/dashboards/{dashboard_id}/cancel-generation`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Signal the Celery task running this dashboard's create/edit intent to abort at the next stage boundary. Idempotent — calling this on a dashboard that already finished is a no-op. The underlying dashboard row is cleaned up automatically if it has no published version.

## Path parameters

- `dashboard_id` integer, required

## Response `201`

Document created, URL follows

- unknown

## Other responses

- `400`: Bad request syntax or unsupported method
- `403`: Request forbidden -- authorization will not help

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/fe078afe239b?raw)
