---
title: "Cancel workflow"
method: POST
path: "/workflow/{workflowId}/cancel"
tags: ["workflows"]
---

# Cancel workflow

`POST /workflow/{workflowId}/cancel`

Cancels the workflow execution identified by the given `workflowId`.

## Path parameters

- `workflowId` string, required

## Query parameters

- `workspaceId` integer
- `force` boolean

## Request body

- EmptyBodyRequest

## Response `204`

OK - No content

## Other responses

- `400` — Bad request
- `403` — Operation not allowed

---

[API](https://skmtc.net/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.net/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/revisions/13316c9fe5ff/schema)
