---
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

## Changes

> 14 revisions in range; 1 not diffed, 3 could not be searched.

- **2026-01-20** `98d6b538c88e` — 1 info
  - added the new optional `query` request parameter `force`

[Change history](https://skmtc.dev/seqeralabs/apis/seqera-api/changes/workflow/:workflowId/cancel/post.md)

---

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