Skip to main content
POST
Create 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.

Body

application/json
template_id
string
required

The template's id, such as shopify-catalogue-quality.

Pattern: ^[a-z0-9][a-z0-9-]{1,80}$
name
string
required
Required string length: 1 - 120
inputs
object
required
schedule
object
required
integration_id
integer

The store or account it runs on. Required unless its template runs on nothing, and refused when it does.

connections
integer[]

For a template that runs on nothing, the connections it reads, by id, in the order to read them: each the organisation's own, connected, and of a kind in the template's connections. Refused for any other template.

Required array length: 1 - 20 elements
Required range: x >= 1
timezone
string

The timezone its schedule runs in (IANA name, such as Europe/London); the store's when absent.

Required string length: 1 - 64

Response

Created. The automation, with its first run time when it has a schedule.

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