Docs
Update Reset Condition
PUT /rule-sets/{ruleSetId}/rules/{ruleId}/reset-conditions/{conditionId}
PUT
/rule-sets/{ruleSetId}/rules/{ruleId}/reset-conditions/{conditionId}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 reset condition's fields.
Requires
ResourceTypeDatabase.Edit permission.Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| ruleSetId | Guid | Required | The rule set. |
| ruleId | Guid | Required | The rule. |
| conditionId | Guid | Required | The reset condition. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| resetType | string | Required | `ScheduleGap`, `BlockType` or `CalendarPeriod`. |
| blockTypeId | Guid? | Optional | For `BlockType`. |
| minDuration | decimal? | Optional | Minimum gap or block length. |
| durationUnit | string | Optional | `Hours`, `Minutes` or `Days`. |
| period | string | Optional | `Day`, `Week` or `Month`, for `CalendarPeriod`. |
| periodStartDay | string | Optional | Day the period starts on. |
| thresholdOverrides | array | Optional | `{ ruleThresholdId, threshold, thresholdUnit }`: per-threshold values after this reset. |
Response
200 OK. No response body.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | Invalid arguments. |
| 404 | Rule set, rule, condition or block type not found. |