api: Implement PATCH /realm/profile_fields/{field_id} endpoint.
MODIFY
zulip/zulip/__init__.py
zulip/zulip/__init__.py
@@ -957,6 +957,19 @@ class Client:
request=request,
)
+ def update_realm_profile_field(self, field_id: int, **request: Any) -> Dict[str, Any]:
+ '''
+ Example usage:
+
+ >>> client.update_realm_profile_field(field_id=1, name='Email')
+ {'result': 'success', 'msg': ''}
+ '''
+ return self.call_endpoint(
+ url='realm/profile_fields/{}'.format(field_id),
+ method='PATCH',
+ request=request,
+ )
+
def get_server_settings(self) -> Dict[str, Any]:
'''
Example usage:

api: Implement PATCH /realm/profile_fields/{field_id} endpoint.