Docs
Add Threshold
POST /rule-sets/{ruleSetId}/rules/{ruleId}/thresholds
POST
/rule-sets/{ruleSetId}/rules/{ruleId}/thresholdsAdds 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
| Field | Type | Required | Description |
|---|---|---|---|
| ruleSetId | uuid | Required | |
| ruleId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| order | integer | Optional | |
| threshold | number | Optional | |
| thresholdUnit | string | Optional | |
| operator | string | Optional | |
| resultingStateId | uuid | Optional |