---
title: "CancelWorkflowExecution"
method: POST
path: "/gitpod.v1.WorkflowService/CancelWorkflowExecution"
tags: ["gitpod.v1.WorkflowService"]
---

# CancelWorkflowExecution

`POST /gitpod.v1.WorkflowService/CancelWorkflowExecution`

Cancels a running workflow execution.

 Use this method to:
 - Stop long-running executions
 - Cancel failed executions
 - Manage resource usage

 ### Examples

 - Cancel execution:

   Stops a running workflow execution.

   ```yaml
   workflowExecutionId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
   ```

## Request body

- GitpodV1CancelWorkflowExecutionRequest — CancelWorkflowExecutionRequest cancels a running workflow execution.
  - `workflowExecutionId` string, uuid

## Response `200`

Success

- GitpodV1CancelWorkflowExecutionResponse

## Other responses

- `default` — Error

---

[API](https://skmtc.net/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.net/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/44d50c2ac284/schema)
