Skip to main content

Start or abort a flow

This endpoint allows to control the flow execution. Allowed actions are 'start' (to start a flow) or 'abort' (to stop and abort a started flow).

Endpoint

PATCH https://flows.generio.ai/flows/{flow_id}

Parameters

flow_id (required)

  • Location: path
  • Type: string
  • Example: string

Request Body

Schema

{
"action": "string"
}
  • action (string): Action to perform on the flow, e.g., 'start' or 'abort'.

Code Examples

Copy and run these examples in your terminal or code editor.Make sure to replace YOUR_TOKEN with your actual authentication token.

curl -X PATCH "https://flows.generio.ai/flows/{flow_id}" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"action": "string"
}'