---
title: "Cancel Training Pipeline"
method: POST
path: "/v1/training-pipelines/{pipeline_id}/cancel"
tags: ["training-pipelines"]
---

# Cancel Training Pipeline

`POST /v1/training-pipelines/{pipeline_id}/cancel`

## Request

- Base URL: `https://api.pioneer.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pioneer.ai/v1/training-pipelines/{pipeline_id}/cancel`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/pioneer/apis/brain-api/docs/v1/training-pipelines/:pipeline_id/cancel/post.ts> (a function with typed inputs; its response is checked against the schema)

Cancel a pipeline and stop the active provider stage.

## Path parameters

- `pipeline_id` string, required

## Response `200`

Successful Response

- TrainingPipelineControlResponse: Response for pipeline lifecycle control actions.
  - `pipeline_id` string, required
  - `status` string, required
  - `message` string, required
  - `active_stage_index` integer, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-24** `0e5e86e2bae5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pioneer/apis/brain-api/changes/v1/training-pipelines/:pipeline_id/cancel/post.md)

---

[API](https://skmtc.dev/pioneer/apis/brain-api.md) - [All operations](https://skmtc.dev/pioneer/apis/brain-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pioneer/apis/brain-api/revisions/0e5e86e2bae5?raw)
