Skip to main content
POST
CreateAutomation

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Body

application/json

The CreateAutomationRequest message.

appId
string

the app id this workflow_template belongs to

automationSteps
Automation Step · object[] | null

The automationSteps field.

context
Automation Context · object

The AutomationContext message.

description
string

The description field.

displayName
string

The displayName field.

draftAutomationSteps
Automation Step · object[] | null

The draftAutomationSteps field.

draftTriggers
Automation Trigger · object[] | null

The draftTriggers field.

enabled
boolean

The enabled field.

isDraft
boolean

The isDraft field.

triggers
Automation Trigger · object[] | null

The triggers field.

Response

200 - application/json

Successful response

The CreateAutomationResponse message.

automation
Automation · object

The Automation message.

This message contains a oneof named disabled_reason. Only a single field of the following list may be set at a time:

  • circuitBreaker
webhookHmacSecret
string

If we create a new trigger with an HMAC secret we return the HMAC on this field