The search conditions that an object must meet for the rule to apply, combined with AND. The built-in rules include a "not deleted" condition (STATUS_TYPE_IS_DELETED equal to false).
The events that trigger a notification. A single EVENT_TYPE_OBJECT_NOTIFICATION subscription makes the rule filter-based: it then notifies about the objects that match object_filter.
is_enabled turns the rule on, send_digest combines the day's notifications into one message, exclude_self_triggered leaves out events caused by the user, and recurring (filter-based rules only) repeats the notification for objects that still match.
is_common
bool
6
True for a common rule that notifies the users and groups in recipients; false for a private rule of its owner.
For a common rule, the users and groups to notify. Not used by private rules.
notification_days_of_week
uint32
8
For filter-based rules, the days on which the rule is processed, as a bit mask: 1 Sunday, 2 Monday, 4 Tuesday, 8 Wednesday, 16 Thursday, 32 Friday, 64 Saturday. 127 means every day.
AddNotificationRuleRequest.utf8szrule -- The rule to create. Set name, subscriptions and usually object_filter and options.is_enabled; for a common rule also is_common and recipients. id is ignored.