Docs

Add Threshold

POST /rule-sets/{ruleSetId}/rules/{ruleId}/thresholds

POST/rule-sets/{ruleSetId}/rules/{ruleId}/thresholds

Adds a threshold to a rule: the amount, its unit (Hours, Minutes or Days) and operator (GreaterThan or LessThan), and the state (resultingStateId, from Resources_GetResourceStates) applied past it. order is its position among the rule's thresholds. Needs the event settings permission.

Path Parameters

FieldTypeRequiredDescription
ruleSetIduuidRequired
ruleIduuidRequired

Request Body

FieldTypeRequiredDescription
orderintegerOptional
thresholdnumberOptional
thresholdUnitstringOptional
operatorstringOptional
resultingStateIduuidOptional