Skip to content

Action

Manage Automated Actions.

Actions implement automated responses for specific device and cloud conditions. Actions are invoked by triggers to respond and implement a specific remedy or notification. .

Find

Find actions by matching properties.

Endpoint

HTTP
POST /action/find

Authorized User Role

user

Request Body

FieldTypeRequired
cloudIdstringyes
typestring

Query String Options

FieldTypeNotes
filterstringFull text string to filter for.
nextobjectPagination token for the next page.
prevobjectPagination token for the previous page.
limitnumberNumber of items to retrieve.
indexstringDatabase index to use.
existsbooleanSet to true to require the item exists, otherwise set to null to perform an upsert.

Response

Paged response.

FieldTypeNotes
dataarrayArray of items.
nextstringPaged cursor to use for the next page of items.
prevstringPages cursor to use for the previous page of items.

Action

An array of Action items.

FieldTypeNotes
argsobjectAction args.
bufferobjectBuffer optimizations for metrics.
cloudIdstringOwning device cloud ID.
contextobjectTrigger expression context, merged with user params.
descriptionstring
destinationstringURL, email address, function name, topic, phone number.
duenumberWhen the action is next due.
enableboolean
errorstring
expressionstring
formatstring
idstring
messagestringMessage template/properties.
namestring
pollnumberDelay between pollng the trigger.
rearmnumberTime period to suppress triggering.
severitystring
triggerstringSource of action trigger.
typestring

Get

Get an action by ID for a cloud.

Endpoint

HTTP
POST /action/get

Authorized User Role

admin

Request Body

FieldTypeRequiredNotes
idstringAction ID.
cloudIdstringyes
typestringyes

Response

FieldTypeNotes
argsobjectAction args.
bufferobjectBuffer optimizations for metrics.
cloudIdstringOwning device cloud ID.
contextobjectTrigger expression context, merged with user params.
descriptionstring
destinationstringURL, email address, function name, topic, phone number.
duenumberWhen the action is next due.
enableboolean
errorstring
expressionstring
formatstring
idstring
messagestringMessage template/properties.
namestring
pollnumberDelay between pollng the trigger.
rearmnumberTime period to suppress triggering.
severitystring
triggerstringSource of action trigger.
typestring

Invoke

Invoke an action by ID or name.

Endpoint

HTTP
POST /action/invoke

Authorized User Role

user

Request Body

FieldTypeNotes
idstringAction ID.
namestringAction name if ID not provided.
paramsobjectParameters for the action.
contextobjectContext for the action.

Response

A string.