From a85ac15d2d50a8bd3fd5df03543e3562d89bb051 Mon Sep 17 00:00:00 2001 From: Kartik Srivastava Date: Wed, 27 May 2020 22:38:23 +0530 Subject: [PATCH] api: Implement DELETE /realm/profile_fields/{field_id} endpoint. --- zulip/zulip/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 8a57a55..66dc41f 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -932,6 +932,18 @@ class Client: request=request, ) + def remove_realm_profile_field(self, field_id: int) -> Dict[str, Any]: + ''' + Example usage: + + >>> client.remove_realm_profile_field(field_id=9) + {'result': 'success', 'msg': ''} + ''' + return self.call_endpoint( + url='realm/profile_fields/{}'.format(field_id), + method='DELETE', + ) + def get_server_settings(self) -> Dict[str, Any]: ''' Example usage: