---
title: "Cancel a data export"
method: POST
path: "/v1/exports/{exportId}/cancel"
---

# Cancel a data export

`POST /v1/exports/{exportId}/cancel`

## Request

- Base URL: `https://docs.greatwait.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.greatwait.dev/v1/exports/{exportId}/cancel`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer and API key in header `Greatwait-Environment` and API key in header `Greatwait-Project`

Permanently cancels an export job. Repeating cancellation is safe and cancelled jobs cannot serve file parts.

## Path parameters

- `exportId` string, required

## Response `200`

Cancel a data export

- object
  - `cancelled` true, required
  - `export` object, required
    - `createdAt` string, required
    - `consistency` 'creation-cutoff-current-values', required
    - `cutoffAt` string, required
    - `id` string, required
    - `state` 'active' | 'complete' | 'cancelled', required
    - `updatedAt` string, required

## Other responses

- `401`: Problem document. Possible codes at this status: authentication_required, credential_expired, credential_revoked.
- `403`: Problem document. Possible codes at this status: scope_missing.
- `404`: Problem document. Possible codes at this status: not_found.
- `409`: Problem document. Possible codes at this status: project_archived, state_conflict.
- `429`: Problem document. Possible codes at this status: rate_limited.
- `503`: Problem document. Possible codes at this status: capability_not_configured, service_unavailable.

---

[API](https://skmtc.dev/greatwait/apis/greatwait-v1.md) · [All operations](https://skmtc.dev/greatwait/apis/greatwait-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/greatwait/apis/greatwait-v1/revisions/6855bce23e72?raw)
