Update Flow
Update a Flow’s configuration and metadata
As this endpoint modifies data, you will need to use the private API key.
Obtaining the numeric ID of a Flow
To obtain the numeric ID of a Flow, you should make a GET request to get the Flow you are looking to change. The numeric ID is a number and is different from the slug (e.g. flow_GzXC2fHz
). The reason for this is that different versions of the Flow share the same slug but have different numeric IDs to differentiate them.
Authorizations
Authentication header of the form Bearer: <token>
, where <token>
is either your public or private API key. See when to use which
Body
The name of the Flow
"New User Announcement"
JSON or YAML encoded raw data of thew Flow. If provided in JSON format it will be converted to YAML automatically
"{\"steps\": [{\"id\": \"step_1\", \"title\": \"Welcome to my app!\", \"subtitle\": \"Let me show you around.\"}]}"
The description of the Flow
"This is a Flow that welcomes new users to the app"
The targeting logic for the Flow
"user.property('isAdmin') == true"
The type of Flow
ANNOUNCEMENT
, BANNER
, CARD
, CHECKLIST
, CUSTOM
, FORM
, SURVEY
, TOUR
"CHECKLIST"
Whether the Flow is active or not. If set to false
, the Flow will not be shown to users
true
Response
The numeric ID of the Flow. This number will be different depending on the version used
The name of the Flow
"New User Announcement"
JSON encoded raw data of the Flow as defined in the Flow's YAML configuration
"{\"steps\": [{\"id\": \"step_1\", \"title\": \"Welcome to my app!\", \"subtitle\": \"Let me show you around.\"}]}"
The targeting logic for the Flow
"user.property('isAdmin') == true"
The type of Flow
ANNOUNCEMENT
, BANNER
, CARD
, CHECKLIST
, CUSTOM
, FORM
, SURVEY
, TOUR
"CHECKLIST"
A unique identifier for the Flow such as flow_abc
. Slugs stay the same between environment and versions.
"flow_abc"
The data the Flow was created in ISO 8601 format
"2024-01-01T00:00:00Z"
The data the Flow was last modified in ISO 8601 format
"2024-01-01T00:00:00Z"
The version of the Flow
1
The status of the Flow
ACTIVE
, ARCHIVED
, DRAFT
"ACTIVE"
The original code snippet for the Flow when it was created
"<Frigade.Announcement flowId=\"my-flow-id\" />"