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

<ParamField path="training_id" type="string" required />

### Response

`TrainingCancelResponse`

<ResponseField name="training_id" type="string" required>
  Training job identifier
</ResponseField>

<ResponseField name="status" type="string" required>
  New status (cancelled)
</ResponseField>

<ResponseField name="message" type="string" required>
  Status message
</ResponseField>

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

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url 'http://localhost:8000/training/{training_id}' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```
</RequestExample>

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