Docs

Update Rule

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

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

Replaces a rule's fields; changing priority shifts the sibling rules' priorities to keep them ordered. A TimeOfDayWindow rule is live on a day when the weekday is in daysOfWeek or the day matches an entry in annualDates; with neither set it is live every day, and with dates only it is live on those dates alone. A date matches the actual calendar day, never a weekend observance. scope is Event or Organization, and events pick up a change on their next pull. exemptBlockTypeIds lists block types the rule ignores. A BlockDuration rule accumulates time in every block type listed in trackedBlockTypeIds (at least one); other rules send it empty. Requires ResourceTypeDatabase.Edit.

Path Parameters

FieldTypeRequiredDescription
ruleSetIduuidRequired
ruleIduuidRequired

Request Body

FieldTypeRequiredDescription
namestringOptional
descriptionstringOptional
priorityintegerOptional
conditionTypestringOptional
trackedBlockTypeIdsuuid[]Optional
isActivebooleanOptional
windowStarttimeOptional
windowEndtimeOptional
resultingStateIduuidOptional
daysOfWeekstring[]Optional
annualDatesstring[]Optional
scopestringOptional
exemptBlockTypeIdsuuid[]Optional