Skip to main content
PATCH
Update automation

Authorizations

Authorization
string
header
required

A bearer token from Login, sent as Authorization: Bearer <token>. Valid for 60 minutes; it acts as the person named at login, within their organisation, and never approves. Rotating or disabling the organisation's API credential ends every token made with it on its next call. See Authentication.

Path Parameters

automationId
string
required

The automation's id. A public id (a ULID).

Pattern: ^[0-9A-HJKMNP-TV-Z]{26}$

Body

application/json
version
integer
required

The version you last read.

Required range: x >= 1
name
string
Required string length: 1 - 120
inputs
object
schedule
object
timezone
string

The timezone its schedule runs in (IANA name); its coming runs are worked out again.

Required string length: 1 - 64
bindings
object

A workflow automation's whole map of bound steps; a step left out is unbound. Each binding must be one of your organisation's connections, of the step's kind.

connections
integer[]

The whole list of connections an automation of a template that runs on nothing reads, by id, checked as on set-up; refused for any other.

Required array length: 1 - 20 elements
Required range: x >= 1
send_mode
enum<string>

A workflow automation's sending, as Automation.send_mode. send is refused unless Automation.send_mode_allowed.

Available options:
ask,
send
workflow
object

A whole rewrite of a workflow automation's steps, saved as its next version. Sent with version and preview_hash only.

preview_hash
string

The preview_hash from Preview workflow change. The change is saved only when it matches (preview_mismatch otherwise).

Pattern: ^[0-9a-f]{64}$

Response

The automation after the change.

success
boolean
required
contract_version
integer
required

The version of the API this answer follows. It changes only for a breaking change.

Required range: x >= 1
data
object
required