Flows
Create or update flow by name
Create a new flow or update an existing one. When the body has no id, the name path param is used as the flow id.
post/flow/{name}
Request
- Base URLhttps://api.lytics.io/v2
- URLhttps://api.lytics.io/v2/flow/{name}
- AuthAPI key in header Authorization
Path parameters
namestring required
The flow name (used as the flow id when the body has no id)
Query parameters
account_idstring
The account ID. Defaults to the user's default account.
Request body
Example request
{
"steps": [
{
"delay_until": {
"time_of_day": "09:30",
"timezone": "America/New_York"
}
}
]
}Response
Updated Flow
Example response
{
"data": {
"steps": [
{
"delay_until": {
"time_of_day": "09:30",
"timezone": "America/New_York"
}
}
]
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.