---
title: "Cancel the running pipeline"
method: POST
path: "/doCancel"
tags: ["Pipeline Overview"]
---

# Cancel the running pipeline

`POST /doCancel`

Cancels the currently running pipeline build.

## Response `200`

Pipeline cancelled successfully

- SuccessResponse
  - `status` 'ok'
  - `data` object

## Other responses

- `400` — Pipeline cannot be cancelled (not running)
- `403` — Insufficient permissions

---

[API](https://skmtc.dev/jenkinsci/apis/jenkins-pipeline-graph-view-plugin-api.md) · [All operations](https://skmtc.dev/jenkinsci/apis/jenkins-pipeline-graph-view-plugin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jenkinsci/jenkins-pipeline-graph-view-plugin-api/revisions/c1a45dd913f0/schema)
