> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel Training

> Cancel a running training job.

Cancel a running training job.

### Path parameters

**training\_id** `string` *required*

### Response

`TrainingCancelResponse`

**training\_id** `string` *required*

Training job identifier

**status** `string` *required*

New status (cancelled)

**message** `string` *required*

Status message

### Status codes

| Code | Meaning |
| - | - |
| `200` | Training cancelled |
| `401` | Authentication required |
| `403` | Insufficient permissions |
| `404` | Training job not found |
| `422` | Validation Error |
| `429` | Rate limit exceeded |

```bash cURL theme={null}
curl --request DELETE \
  --url 'http://localhost:8000/training/{training_id}' \
  --header "Authorization: Bearer $STATESET_AGENTS_API_KEY"
```

```json 200 theme={null}
{
  "training_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "status": "pending",
  "message": "Two-person tent, green — replacement for damaged pole set."
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.