Update workflow execution status
Manually update the status of a workflow execution. This is useful for programmatically controlling workflow lifecycle from external systems.
Allowed status transitions:
ended- End the execution immediatelyhandoff- Transfer execution to human agentwaiting- Pause execution until resumed
Use cases:
- End workflows based on external events
- Transfer complex queries to human agents
- Implement custom timeout logic
- Coordinate workflows with external systems
Invalid transitions (e.g., transitioning from a terminal state) will return a 422 error with details about why the transition is not allowed.
Response: Returns full execution data including the updated status. Use GET /workflow_executions/ to retrieve execution context and event history.
Authorizations
Path Parameters
Execution identifier
Body
Request to update a workflow execution status. Only certain status transitions are allowed (ended, handoff, waiting). The execution will transition to the new status if the transition is valid according to the workflow state machine.
Response
Execution status updated successfully
Minimal workflow execution response (without execution_context and events)
Base workflow execution schema

