> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel Execution

> Cancels a running or pending workflow execution.

### Path Parameters

<ParamField path="workflow_id" type="string" required>
  The workflow UUID
</ParamField>

<ParamField path="execution_id" type="integer" required>
  The execution ID
</ParamField>

### Response

```json theme={null}
{
  "status": "success",
  "message": "Execution cancelled."
}
```

### Error Responses

* `400 Bad Request` - Cannot cancel execution in current state (already completed/failed)
* `404 Not Found` - Execution not found
