POST
/
businesses
/
{id}
/
triggers

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the business

Body

application/json
name
string
required

The name of the trigger

steps
object[]
required

The steps of the trigger

trigger
string
required

The event that triggers the trigger

email_address
string | null

The ID of an email address or project email address. Will be used to send emails as part of this trigger

filter
string | null

A further filter on the trigger

phone_number
string | null

The ID of a phone number or project phone number. Will be used to send SMS messages as part of this trigger

project_defined_event
enum<string> | null

Must be null or not passed

Response

200 - application/json
email_address
string | null
required

The ID of the email address or project email address associated with the trigger. Will be used to send emails as part of this trigger

filter
string | null
required

An additional filter that determines if the trigger should be run

id
string
required

The ID of the trigger

name
string
required

The name of the trigger

phone_number
string | null
required

The ID of the phone number or project phone number associated with the trigger. Will be used to send SMS messages as part of this trigger

status
string
required

The status of the trigger. One of "active" or "inactive"

steps
object[]
required

The steps of the trigger

trigger
string
required

The event that triggers the trigger