Skip to main content
POST
Create or update a workflow

Path Parameters

botId
string<uuid>
required

The ID of the bot to create/update the workflow for

Body

Request body for creating or updating a workflow

title
string
required

Title of the workflow

description
string | null
required

Optional description of the workflow

steps
object[]
required

Steps in the workflow

id
string<uuid>

The workflow ID. If provided, the workflow will be updated; otherwise, a new workflow will be created.

enabled
boolean
default:true

Whether the workflow is enabled

usageContext
string | null

Context describing when this workflow should be used

order
number
default:0

Order of the workflow

Response

Response containing the created or updated workflow

success
enum<boolean>
required
Available options:
true
data
object
required

A workflow exported in portable JSON format