---
title: "Cancel multiple investigations"
method: POST
path: "/v1/investigations/cancel"
tags: ["Investigations"]
---

# Cancel multiple investigations

`POST /v1/investigations/cancel`

## Request

- Base URL: `https://docs.grepr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.grepr.ai/v1/investigations/cancel`
- Auth: one of:
  - API key in header `GREPR-API-KEY`
  - OpenID Connect (`https://grepr-prod.us.auth0.com/.well-known/openid-configuration`)

Marks eligible investigations as CANCELLING in one organization-scoped request. Cancellation is completed asynchronously.

## Request body

- BatchCancelInvestigationsRequest
  - `investigationIds` string[], required

## Response `202`

Cancellation requests recorded

- BatchCancelInvestigationsResponse
  - `cancelling` string[]
  - `skipped` SkippedInvestigation[]
    - `investigationId` string
    - `reason` 'NOT_FOUND' | 'ALREADY_FINISHED'

## Other responses

- `400`: The request is empty or contains more than 500 ids
- `401`: Unauthorized

---

[API](https://skmtc.dev/grepr/apis/grepr-api.md) - [All operations](https://skmtc.dev/grepr/apis/grepr-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grepr/apis/grepr-api/revisions/2a5ce03a0bf0?raw)
