Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Bearer token via Authorization header

Body

application/json
name
string
required
Required string length: 1 - 256
triggerId
string<uuid>
required
actions
object[]
required
Minimum array length: 1
description
string
Maximum string length: 2048
enabled
boolean
default:true
deviceIds
string<uuid>[]
Maximum array length: 256
cooldownSeconds
integer | null
Required range: x >= 0
cooldownScope
enum<string>
default:flow
Available options:
flow,
device
notifyWebhookId
string<uuid> | null
notifyOnSuccess
boolean
default:false
notifyOnFailure
boolean
default:false

Response

201 - application/json

Flow created

data
object
required