Docs
Update Threshold
PUT /rule-sets/{ruleSetId}/rules/{ruleId}/thresholds/{thresholdId}
PUT
/rule-sets/{ruleSetId}/rules/{ruleId}/thresholds/{thresholdId}Required Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Organization token | x-Organization-Token | Optional | Run **Authorize Organization** in the Authorization folder. |
Replaces a threshold's fields.
Requires
ResourceTypeDatabase.Edit permission.Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| ruleSetId | Guid | Required | The rule set. |
| ruleId | Guid | Required | The rule. |
| thresholdId | Guid | Required | The threshold. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| order | int | Required | Position among the rule's thresholds. |
| threshold | decimal | Required | The amount. |
| thresholdUnit | string | Required | `Hours`, `Minutes` or `Days`. |
| operator | string | Required | `GreaterThan` or `LessThan`. |
| resultingStateId | Guid | Required | State applied past the threshold. |
Response
200 OK. No response body.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | Invalid arguments. |
| 404 | Rule set, rule, threshold or state not found. |