---
search:
  tags:
    - Workflows
    - POST
seo:
  description: >-
    Only pending, running, or waiting runs can be cancelled. Reference for the
    POST /api/v2/workflows/runs/{runId}/cancel endpoint in the Anlyon API.
sidebar:
  label: Cancel a workflow run
  badge: POST
title: Cancel a workflow run
type: openapi-operation
---
Only pending, running, or waiting runs can be cancelled.

`POST /api/v2/workflows/runs/{runId}/cancel`
