Skip to main content
POST
CreateAutomationTrigger

Authorizations

Authorization
string
header
required

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

Body

application/json

The request for a call to AutomationService_CreateAutomationTrigger.

The request for a call to AutomationService_CreateAutomationTrigger.

canvasId
string
required
name
string
required
actionKind
enum<string>
default:AUTOMATION_TRIGGER_ACTION_KIND_UNSPECIFIED
required

AutomationTriggerActionKind is what a trigger does when it fires. v1 is CANVAS_EVALUATION only.

Available options:
AUTOMATION_TRIGGER_ACTION_KIND_UNSPECIFIED,
AUTOMATION_TRIGGER_ACTION_KIND_CANVAS_EVALUATION
matchFilter
object

AutomationTriggerMatchFilter selects which stopped runs a trigger matches. Empty asset_ids, absent name_match, and empty metadata_matches each match any value. Dimensions are AND'd. STARTS_WITH / ENDS_WITH / CONTAINS are case-insensitive; REGEX is Go regexp (add (?i) for case-insensitive).

actionParams
object

AutomationTriggerActionParams is the public action_params shape, oneof by action kind.

isEnabled
boolean
emailNotificationsEnabled
boolean

Defaults to true when unset.

notificationRecipientEmails
string[]

Defaults to the creating user's address when empty.

reportNameTemplate
string

Names the reports this automation publishes, stored on the trigger. Omit it to let the server apply the run-aware default: when the trigger binds a triggering run and the canvas has no template of its own, the new trigger is given one naming its reports after that run. See sift_internal.canvas.v1.Canvas.report_name_template for the syntax.

triggerKind
enum<string>
default:AUTOMATION_TRIGGER_KIND_UNSPECIFIED

AutomationTriggerKind is the source that causes a trigger to fire.

  • AUTOMATION_TRIGGER_KIND_RUN_STOP: Fire after a matching run stops.
  • AUTOMATION_TRIGGER_KIND_SCHEDULE: Fire on a recurring cron cadence in an IANA timezone.

Reserved. Create/Update reject this value.

Available options:
AUTOMATION_TRIGGER_KIND_UNSPECIFIED,
AUTOMATION_TRIGGER_KIND_RUN_STOP,
AUTOMATION_TRIGGER_KIND_SCHEDULE
cronExpression
string

Required when trigger_kind is SCHEDULE.

timezone
string

IANA timezone. Required when trigger_kind is SCHEDULE.

Response

A successful response.

The response of a call to AutomationService_CreateAutomationTrigger.

automationTrigger
object
required

AutomationTrigger is a Canvas Scheduler rule: match a stopped run or fire on a cron cadence, then dispatch (v1: EvaluateCanvas).