---
title: "Cancel an export job"
method: POST
path: "/v3/exports/{jobId}/cancel"
tags: ["Exports"]
---

# Cancel an export job

`POST /v3/exports/{jobId}/cancel`

Cancels an export job that is still `pending` or `running`.

A `200` doesn't guarantee the job was cancelled — if it finished while the
request was in flight, the response carries its actual final status. Always
read `status` rather than relying on the status code.

## Path parameters

- `jobId` string, uuid, required

## Response `200`

The job's status after the attempt — `cancelled`, or the state it
reached first.

- object
  - `jobId` string, uuid
  - `status` 'pending' | 'running' | 'success' | 'failure' | 'cancelled' — `success`, `failure` and `cancelled` are final states.

## Other responses

- `400` — The job already finished and can't be cancelled.
- `401` — The token is missing, malformed or expired.
- `403` — The token doesn't grant access to this resource.
- `404` — The resource doesn't exist.
- `429` — You went over the [rate limit](#rate-limits) for this API.

---

[API](https://skmtc.net/gitbookio/apis/carto-api.md) · [All operations](https://skmtc.net/gitbookio/apis/carto-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitbookio/carto-api/revisions/019f79ecdd6c/schema)
