# Stop a batch; requests not yet run are not run, and what was answered is kept

`POST /models/v1/batches/{id}/cancel` · Rivier · models

Stop a batch; requests not yet run are not run, and what was answered is kept.

- Scope: models:write
- Graphql: Mutation.modelsBatchCancel
- Sdk: models.batch.cancel
- Cli: models batch cancel
- Events: models.batch.completed

## Parameters

- `id` (path, required), string

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/models/v1/batches/{id}/cancel' \
  -H 'Authorization: Bearer $KEY'
```
