From e25ebce27b842b803202fcd6d16162a871a8ca09 Mon Sep 17 00:00:00 2001 From: Kartik Srivastava Date: Thu, 28 May 2020 00:41:36 +0530 Subject: [PATCH] api: Implement PATCH /realm/profile_fields endpoint. --- zulip/zulip/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 66dc41f..1e53e88 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -944,6 +944,19 @@ class Client: method='DELETE', ) + def reorder_realm_profile_fields(self, **request: Any) -> Dict[str, Any]: + ''' + Example usage: + + >>> client.reorder_realm_profile_fields(order=[8, 7, 6, 5, 4, 3, 2, 1]) + {'result': 'success', 'msg': ''} + ''' + return self.call_endpoint( + url='realm/profile_fields', + method='PATCH', + request=request, + ) + def get_server_settings(self) -> Dict[str, Any]: ''' Example usage: