---
title: "Cancel an in-progress import"
method: POST
path: "/v1/imports/{id}/cancel"
tags: ["Imports"]
---

# Cancel an in-progress import

`POST /v1/imports/{id}/cancel`

## Request

- Base URL: `https://api.memestack.ai`
- URL: `https://api.memestack.ai/v1/imports/{id}/cancel`
- Auth: HTTP bearer

Owner only. Valid from any active status (awaiting_transfer, transferring, queued, running, draining). Already-processed images are left in place — only the remaining chunk chain stops. If the import was still mid-transfer, the R2 multipart upload session is aborted (best-effort).

## Path parameters

- `id` string, uuid, required

## Response `200`

Cancelled.

- object
  - `ok` boolean
  - `status` 'cancelled'

## Other responses

- `404`: Import not found, or caller is not the owner.
- `409`: Import is already in a terminal state (completed, failed, cancelled, reverting, or reverted).

---

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