Skip to content

Trigger

Manage Triggers.


Find

Endpoint

1
POST /trigger/find

Authorized User Role

1
user

Request Body

Field Type Required
cloudId string yes
type string

Query String Options

Field Type Notes
filter string Full text string to filter for.
next object Pagination token for the next page.
prev object Pagination token for the previous page.
limit number Number of items to retrieve.
index string Database index to use.
exists boolean Set to true to require the item exists, otherwise set to null to perform an upsert.

Response

Paged response.

Field Type Notes
data array An array of merics.
next string Paged cursor to use for the next page of items.
prev string Pages cursor to use for the previous page of items.

Trigger

An array of Trigger items.

Field Type Notes
cloudId string Owning device cloud ID.
name string
description string
enable boolean
id string
type string Source of the trigger.
error string
expression string
context object Expression context, merged with user params.
buffer object Buffer optimizations.
poll number Delay between pollng the trigger.
rearm number Time period to suppress triggering.
due number When the trigger is next due (if rearming).
message string Message template/properties.
actionId string Action ID or name.
args object Action args.
severity string

Get

Endpoint

1
POST /trigger/get

Authorized User Role

1
admin

Request Body

Field Type Required
id string
cloudId string yes
type string yes

Response

Field Type Notes
cloudId string Owning device cloud ID.
name string
description string
enable boolean
id string
type string Source of the trigger.
error string
expression string
context object Expression context, merged with user params.
buffer object Buffer optimizations.
poll number Delay between pollng the trigger.
rearm number Time period to suppress triggering.
due number When the trigger is next due (if rearming).
message string Message template/properties.
actionId string Action ID or name.
args object Action args.
severity string

Invoke

Endpoint

1
POST /trigger/invoke

Authorized User Role

1
user

Request Body

Field Type
id string
name string
params object
context object

Response

A string.