fix notification rule creation in APIs for new NotificationRuleState model