# Cancel an Execution.

Endpoint: POST /executions/{executionId}/cancel
Version: 3.23.0
Security: ApiKeyAuth

## Security:

  - `ApiKeyAuth` (unknown)
    apiKey in header Authorization

## Path parameters:

  - `executionId` (string, required)
    The ID of the Execution.

## Request fields (application/json):

  - `expected_status` (string)
    The expected status of the execution to cancel to prevent cancelling a queued job that has transitioned to a running state since the request was issued (Standard Job only).
    Enum: "QUEUED", "RUNNING"

## Response 200:

  - `200` (unknown)
    OK

