Trigger#
Methods#
POST#
Fire a trigger in the project.
POST /api/trigger
Payload is a JSON object with the following attributes:
Attribute |
Value Type |
Description |
Value Example |
---|---|---|---|
|
integer |
User number of the trigger to fire. |
|
|
string |
Optional. Comma-separated to pass into the trigger. |
e.g. a string |
|
boolean |
Optional. Whether to test the trigger’s conditions before deciding to run its actions. Defaults to |
|
GET#
Returns the triggers in the project.
GET /api/trigger?[type=triggerType]
triggerType
is expected to be a string and can be used to filter the type of trigger returned. For example, "Timeline Started"
would return only Timeline Started triggers in the project.
Returns a JSON object with a single triggers
attribute, which has an array value. Each item in the array is a Trigger object with the following attributes:
Attribute |
Value Type |
Description |
Value Example |
---|---|---|---|
|
string |
Trigger type |
|
|
integer |
Trigger user number |
|
|
string |
User-defined trigger name |
|
|
string |
Trigger group colour as a hex colour string |
|
|
string |
User-defined description of trigger |
|
|
string |
Generated description of when the trigger will run, based on its properties |
|
|
array |
Array of Condition objects (see below) |
|
|
array |
Array of Action objects (see below) |
|
The Condition and Action objects have the following properties:
Attribute |
Value Type |
Description |
Value Example |
---|---|---|---|
|
string |
Generated description of the condition or action, based on its properties |
|