Skip to main content
PATCH
Update a flow
Read the flow first and keep its etag, change what you got back, then send it with If-Match. If someone changed the flow in the app since you read it, you get 412 with the new etag and nothing is overwritten.

Basic Usage

Authorizations

Authorization
string
header
required

Your FlowIQ organisation API key (Settings → API Keys), sent as a bearer token. Format: Bearer fiq_YOUR_API_KEY

Headers

If-Match
string
required

The etag you got from Get a flow

Idempotency-Key
string

Send one so a retried request is not applied twice.

Path Parameters

id
string<uuid>
required

The flow's id

Body

application/json
name
string
Example:

"Abandoned checkout"

description
string
repeat
enum<string>

How often one person can go through the flow. reenter_after uses definition.reenter_after_days.

Available options:
off,
once_per_contact,
once_per_order,
once_per_order_per_day,
once_per_subscription,
reenter_after
definition
Flow definition · object

The whole flow. On a change it replaces the definition.

Example:

Response

Changed

id
string<uuid>
name
string
Example:

"Abandoned checkout"

description
string | null
status
enum<string>
Available options:
live,
off
Example:

"off"

repeat
enum<string>

How often one person can go through the flow. reenter_after uses definition.reenter_after_days.

Available options:
off,
once_per_contact,
once_per_order,
once_per_order_per_day,
once_per_subscription,
reenter_after
trigger
Order or checkout · object

What starts the flow. One of the shapes below.

Example:
definition
Flow definition · object

The flow itself. At most 25 steps at the top level and 80 counting every split path.

Example:
etag
string

Send it back as If-Match when you change the flow.

Example:

"3f9a1c0d7e2b4a61"

stats
object | null
Example:
created_at
string<date-time>
updated_at
string<date-time>
warnings
string[]