Skip to main content
PUT
cURL

Authorizations

Authorization
string
header
required

For your own scripts and server-to-server integrations. Create a key in the app under Settings > Access > API keys and copy it then, because it is shown once. Send it as Authorization: Bearer <key>. The key acts as the member who made it, in the organization it was made in. A call needs the member's permission and one of the key's scopes, such as inventory:read or sales:write. A key with * has every scope.

Path Parameters

automation
string
required

Body

application/json

An automation's definition to keep as its draft: a trigger, conditions, ordered steps and a code step's code. Each step input is mapped to a fixed value, a value of the trigger's data or an earlier step's output. A script is never taken from a draft; it is made when the version is published.

definition
object
required

Response

AutomationResource

data
AutomationResource · object
required