Cancel Work Order
Work Orders
Cancel Work Order
Cancel a queued or running work order
DELETE
Cancel Work Order
Cancel Work Order
Cancels a work order that is currently queued or running. This endpoint supports graceful cancellation of active work orders.Request
The work order ID to cancel (e.g.,
wo_abc123)Response
Indicates if the request was successful
Cancellation result
Example Response
Successful Cancellation
Queued Work Order Cancellation
Error Responses
Work Order Not Found
Already Completed
Returns 409 Conflict if the work order is already in a terminal state.Behavior
| Original Status | Behavior |
|---|---|
queued | Immediately marked as canceled |
running | Graceful shutdown initiated, then marked canceled |
succeeded | Returns 409 Conflict |
failed | Returns 409 Conflict |
canceled | Returns 409 Conflict |
Related
- Force Kill Work Order - Immediately terminate a work order
- Get Work Order - Check work order status
- List Work Orders - List all work orders