---
title: "Cancel import v2 task"
method: POST
path: "/imports/v2/{id}/cancel"
tags: ["product:chat"]
---

# Cancel import v2 task

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

Requests a controlled stop of an import v2 task. Allowed only for tasks in queued or processing state; a processing import stops cleanly on its next progress tick.

## Path parameters

- `id` string, required

## Response `201`

Response

- CancelImportV2TaskResponse, nullable — Basic response information
  - `duration` string, required — Duration of the request in milliseconds

## Other responses

- `400` — Bad request
- `429` — Too many requests

---

[API](https://skmtc.net/getstream/apis/stream-api.md) · [All operations](https://skmtc.net/getstream/apis/stream-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getstream/stream-api/versions/509a44ead023/schema)
