latestOpenAPI 3.1.02026-08-1014497184.0 KB
8b99dca11019
Save workflow definition
Creates or updates a workflow definition for the project
put/workflows
Request body
Example request
{
"key": "project",
"steps": [
{
"command": "broadcast",
"input": {
"channel": "in_app"
}
},
{
"command": "broadcast",
"if": "{{data.paying}} == true",
"input": {
"channel": "email"
}
}
]
}Response
OK
Example response
{
"key": "project",
"steps": [
{
"command": "broadcast",
"input": {
"channel": "in_app"
}
},
{
"command": "broadcast",
"if": "{{data.paying}} == true",
"input": {
"channel": "email"
}
}
]
}