Skip to main content
PATCH
Update one of the caller's workflows.

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Path Parameters

id
string
required

Body

application/json

Every field is optional; omitted fields keep their value. On a Twin row presetKey cannot change (403 TWIN_BINDING_FIXED; an empty string, as the row is projected, means unchanged) and instruction cannot be empty (400 INSTRUCTION_REQUIRED). Every successful update steps a server-side revision the Twin uses to detect concurrent edits.

name
string
Maximum string length: 120
presetKey
string
Maximum string length: 100
instruction
string
Maximum string length: 32000
enabled
boolean
schedule
object | null

Times are UTC. null clears the schedule (same as kind none). On Twin rows the interval must be at least 60 minutes and at most 10 Twin workflows per owner may have a schedule.

Response

Updated.

success
boolean
workflow
object