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

disabledboolean

When true, prevents the workflow from being triggered.

keystring required

Unique identifier for this workflow definition.

Example request

{
  "key": "project",
  "steps": [
    {
      "command": "broadcast",
      "input": {
        "channel": "in_app"
      }
    },
    {
      "command": "broadcast",
      "if": "{{data.paying}} == true",
      "input": {
        "channel": "email"
      }
    }
  ]
}

Response

OK

disabledboolean

When true, prevents the workflow from being triggered.

keystring required

Unique identifier for this workflow definition.

Example response

{
  "key": "project",
  "steps": [
    {
      "command": "broadcast",
      "input": {
        "channel": "in_app"
      }
    },
    {
      "command": "broadcast",
      "if": "{{data.paying}} == true",
      "input": {
        "channel": "email"
      }
    }
  ]
}