From 7dfecf557743dc0bed6a20cdd50f5e825beac4ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20Gonz=C3=A1lez?= Date: Tue, 14 Aug 2018 02:26:25 +0200 Subject: [PATCH] api: Implement DELETE /realm/filters/. --- zulip/zulip/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index deb3ec8..aa75698 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -894,6 +894,19 @@ class Client(object): }, ) + def remove_realm_filter(self, filter_id): + # type: (int) -> Dict[str, Any] + ''' + Example usage: + + >>> client.remove_realm_filter(42) + {'result': 'success', 'msg': ''} + ''' + return self.call_endpoint( + url='realm/filters/{}'.format(filter_id), + method='DELETE', + ) + def get_server_settings(self): # type: () -> Dict[str, Any] '''