curl -X POST '{backend_url}/admin/workflows-executions/{workflow_id}/steps/failure' \
-H 'Authorization: Bearer {jwt_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"transaction_id": "{value}",
"step_id": "{value}"
}'{
"success": true
}Set the status of a step in a workflow’s execution as failed. This is useful for long-running workflows.
curl -X POST '{backend_url}/admin/workflows-executions/{workflow_id}/steps/failure' \
-H 'Authorization: Bearer {jwt_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"transaction_id": "{value}",
"step_id": "{value}"
}'{
"success": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The workflows execution's workflow id.
The details of changing a workflow execution's step status.
The workflows execution's transaction ID.
The ID of the step whose status was changed.
Sets the step's response. It accepts any type.
Sets the compensation function's input. It accepts any response.
Whether to invoke or compensate the step.
invoke, compensate OK
The details of failing the workflow step.
Whether the workflow step has failed successfully.