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 abort a started flow).Action 'start' can only be applied to a created flow that has not been started yet. Action 'abort' can only be applied to a starting or running flow.

Endpoint

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

Parameters

flow_id (required)

  • Location: path
  • Type: string

Request Body

Schema

  • action (string): Action to perform on the flow, i.e. '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 '{}'