Docs

Update Threshold

PUT /rule-sets/{ruleSetId}/rules/{ruleId}/thresholds/{thresholdId}

PUT/rule-sets/{ruleSetId}/rules/{ruleId}/thresholds/{thresholdId}

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Organization tokenx-Organization-TokenOptionalRun **Authorize Organization** in the Authorization folder.

Replaces a threshold's fields.

Requires ResourceTypeDatabase.Edit permission.

Path Parameters

FieldTypeRequiredDescription
ruleSetIdGuidRequiredThe rule set.
ruleIdGuidRequiredThe rule.
thresholdIdGuidRequiredThe threshold.

Request Body

FieldTypeRequiredDescription
orderintRequiredPosition among the rule's thresholds.
thresholddecimalRequiredThe amount.
thresholdUnitstringRequired`Hours`, `Minutes` or `Days`.
operatorstringRequired`GreaterThan` or `LessThan`.
resultingStateIdGuidRequiredState applied past the threshold.

Response

200 OK. No response body.

Error Codes

HTTP StatusDescription
400Invalid arguments.
404Rule set, rule, threshold or state not found.