Docs
Add Reset Condition
POST /rule-sets/{ruleSetId}/rules/{ruleId}/reset-conditions
POST
/rule-sets/{ruleSetId}/rules/{ruleId}/reset-conditionsAdds a reset condition to a rule: what restarts the rule's clock. resetType is ScheduleGap, BlockType (with blockTypeId) or CalendarPeriod (with period Day, Week or Month and periodStartDay); minDuration with durationUnit (Hours, Minutes or Days) gives the minimum gap or block length. thresholdOverrides give per-threshold values after this reset. Needs the event settings permission.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| ruleSetId | uuid | Required | |
| ruleId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| resetType | string | Optional | |
| blockTypeId | uuid | Optional | |
| minDuration | number | Optional | |
| durationUnit | string | Optional | |
| period | string | Optional | |
| periodStartDay | string | Optional | |
| thresholdOverrides | CreateResetConditionRequestThresholdOverrideRequest[] | Optional |
CreateResetConditionRequestThresholdOverrideRequest
| Field | Type | Description |
|---|---|---|
| ruleThresholdId | uuid | |
| threshold | number | |
| thresholdUnit | string| null |