================== notifications.rule ================== Operation: PUT /dataservice/notifications/rule ---------------------------------------------- Update notification rule .. code:: python def put(rule_id: str, payload: Any) -> None: ... Example: ^^^^^^^^ .. code:: python from catalyswan.core import create_client url = "example.com" username = "admin" password = "password123" with create_client( url=url, username=username, password=password ) as client: client.notifications.rule.put() Operation: POST /dataservice/notifications/rule ----------------------------------------------- Add notification rule .. code:: python def post(payload: Any) -> None: ... Example: ^^^^^^^^ .. code:: python from catalyswan.core import create_client url = "example.com" username = "admin" password = "password123" with create_client( url=url, username=username, password=password ) as client: client.notifications.rule.post()