Skip to main content
POST
Create automation from import

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

importId
string
required

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

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

Body

application/json
integration_id
integer
required

The id of the store it reads (see List stores).

schedule
object
required

A workflow that starts on a store event (ImportPlan.trigger.kind event) takes only { "cadence": "manual" }: it has no timetable.

name
string

The import's name when absent.

Required string length: 1 - 120
timezone
string

The timezone its schedule runs in (IANA name); the store's when absent.

Required string length: 1 - 64
bindings
object

Steps bound to your connections at set-up. A step left unbound keeps the automation off, as a draft.

Response

Created. State is active unless schedule.cadence is manual (a workflow that starts on a store event takes only that, and is active) or a step still needs a connection, then draft. Carries readiness.

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