Skip to main content

Create Alert Rule

POST 

/v1/alert-rule

Create a new alert rule within your company by companyUid.

Parameters​

FieldTypeRequiredDescription
No parameters

Body​

FIeldTypeRequiredDescription
namestringrequiredName of the new alert rule, at least two visible characters
companyUidstringrequiredUnique Company Identification
alertTypestringoptionalNot stored; the rule is created as DEVICE. Only selects the feature entitlement the request is checked against.
filterobjectoptionalDevices the rule evaluates. Default, also for null: {}, every device of the target organizations.
thresholdobjectoptionalShare of matching devices that creates an alert. Default: { type: 'percentage', percentage: 0 }.
periodicityobjectoptionalEvaluation interval, and when devices are evaluated: inside weekly windows or, with followDeviceTimers, while each device's own on/off timers keep it on. Default: every hour, the whole week.
actionobjectoptionalWhat happens when the rule creates an alert. Default: notify the creating account.

Request​

Responses​

Created