---
title: "Stop searches that haven't started and cancel running ones where possible. Finished results stay yours."
method: POST
path: "/v1/investigations/batches/{batch_id}/cancel"
---

# Stop searches that haven't started and cancel running ones where possible. Finished results stay yours.

`POST /v1/investigations/batches/{batch_id}/cancel`

## Request

- Base URL: `https://api.specstream.ai`
- URL: `https://api.specstream.ai/v1/investigations/batches/{batch_id}/cancel`
- Auth: API key in header `Authorization`

## Path parameters

- `batch_id` string, required

## Response `200`

Stop searches that haven't started and cancel running ones where possible. Finished results stay yours.

- object
  - `data` InvestigationBatch, required
    - `batch_id` string, required
    - `function_id` string, required
    - `name` string, required
    - `collection_id` string, required
    - `state` string, required
    - `reason` string, nullable, required
    - `maximum_cents` integer, required
    - `currency` string, required
    - `quote_hash` string, required
    - `expires_at` string, date-time, required
    - `counts` object, required
    - `rows` object[], required
    - `works` object[], required
    - `created_at` string, date-time, required

## Other responses

- `default`: Error envelope

---

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