---
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

## Changes

> 108 revisions in range; 2 not diffed, 6 could not be searched.

- **2026-07-29** `d274674f0337` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/getstream/apis/stream-api/changes/imports/v2/:id/cancel/post.md)

---

[API](https://skmtc.dev/getstream/apis/stream-api.md) · [All operations](https://skmtc.dev/getstream/apis/stream-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getstream/stream-api/revisions/653d3d10a523/schema)
