Flows

Retrieve all flows

get

This will only return Flows that are either directly associated with the user, or that are associated with a tenant that the user is also a member of. Requires the 'flows.read' permissions.

Query parameters
page[size]integerOptional

Amount of flows per page returned. Default is 10.

page[number]integerOptional

Number of the page to be returned. Default is 1.

filter[status]stringOptional

Filter results by flow status. Accepts either string ('active' and 'inactive') or integer (1 or 0)

filter[type]stringOptional

Filter results by flow type (ordinary, long_running)

filter[user]stringOptional

Filter by user. Works for admin or users with same tenant.

sortstringOptional

Sort the result by one property. Supported: createdAt, updatedAt and name. Prefix field name with - for reversed sort order (DESC) i.e. sort=-updatedAt. Default sorting is by id ASC

searchstringOptional

Search flows by a word or a phrase contained in the flow description OR in the flow name (case-insensitive). Behavior is similar to operator LIKE in SQL but case insensitive.

Responses
chevron-right
200

A list of flows.

application/json
get
/flows
200

A list of flows.

Find Flow by ID

get

Returns a single Flow by its ID, if the user is authorized to see it. This requires the 'flows.read' permission

Path parameters
idstring · stringRequired

ID of flow to return

Responses
chevron-right
200

Returns the flow

application/json
get
/flows/{id}

Deletes a flow

delete

Entirely deletes a Flow from the repository. This cannot be reverted. Requires the 'flows.write' permission.

Path parameters
idstring · stringRequired

Flow id to delete

Responses
chevron-right
200

Flow was successfully deleted

application/json
Responseobject
delete
/flows/{id}

Update an existing flow

patch

The id is used to match the existing Flow that will be updated. Requires the 'flows.write' permission.

Path parameters
idstring · stringRequired

ID of flow to update

Body
namestringRequiredExample: SnazzyToCodeComponent
descriptionstringOptionalExample: This flow polls for persons and posts them on webhoo.site.
tenantstringOptional
typestring · enumRequired

Flow type

Example: ordinaryPossible values:
cronstringOptional

A cron string describing the interval at which this flow is run. If unset, the flow uses webhooks instead

Example: * /2 * * * *
Responses
chevron-right
200

The updated Flow.

application/json
patch
/flows/{id}

Start a flow

post

Initiates the flow's integration process by publishing an appropriate event to the event bus. Requires the 'flows.control' permission.

Path parameters
idstring · stringRequired

ID of flow to start, must be a valid MongoDB ID.

Responses
chevron-right
200

Returns the id and new status of the flow

application/json
post
/flows/{id}/start

Stop a flow

post

Stops the flow's integration process by publishing an appropriate event to the event bus. Requires the 'flows.control' permission.

Path parameters
idstring · stringRequired

ID of flow to stop, must be a valid MongoDB ID.

Responses
chevron-right
200

Returns id and new status of the stopped flow

application/json
post
/flows/{id}/stop

Last updated