---
title: "Pipeline termination"
method: PATCH
path: "/v1/projects/{projectId}/pipeline-executions/{pipelineExecutionId}"
tags: ["Pipeline Execution"]
---

# Pipeline termination

`PATCH /v1/projects/{projectId}/pipeline-executions/{pipelineExecutionId}`

Cancel an executed pipeline, optionally forcing the termination

## Path parameters

- `projectId` string, required
- `pipelineExecutionId` string, uuid, required

## Request body

- PipelineExecutionUpdateRequest
  - `forceUpdate` boolean, required — If true, the execution will be forcefully terminated
  - `status` 'CANCELLED', required — Cancel pipeline execution by updating status to CANCELLED

## Response `200`

Pipeline execution cancelled (or hard cancelled) successfully

- PipelineExecutionResponse
  - `pipelineExecutionId` string, uuid — Identifier of executing pipeline

## Other responses

- `400` — BAD REQUEST. Unable to cancel (hard cancel) pipeline
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Pipeline Execution not Found
- `500` — Unexpected error occurred
- `504` — Gateway timeout

---

[API](https://skmtc.net/maia/apis/maia-public-rest-api.md) · [All operations](https://skmtc.net/maia/apis/maia-public-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/maia/maia-public-rest-api/versions/6239825f68eb/schema)
