---
title: "Cancel Training"
method: POST
path: "/training/cancel"
tags: ["training"]
---

# Cancel Training

`POST /training/cancel`

## Request

- The document declares no server URL.
- Auth: none required

Cancel a training job

## Request body

- CancelTrainingRequest
  - `training_id` integer, required: ID of the training to cancel.

## Response `200`

Successful Response

- StatusResponse: Default response. May contain other fields.
  - `message` string, nullable
  - `status` 'ok' | 'error'

## Other responses

- `422`: Validation Error

---

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