Skip to content

Commit 9e9b1ef

Browse files
akashaviatortimabbott
authored andcommitted
api: Implement PATCH /realm/profile_fields/{field_id} endpoint.
1 parent e25ebce commit 9e9b1ef

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

zulip/zulip/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,19 @@ def reorder_realm_profile_fields(self, **request: Any) -> Dict[str, Any]:
957957
request=request,
958958
)
959959

960+
def update_realm_profile_field(self, field_id: int, **request: Any) -> Dict[str, Any]:
961+
'''
962+
Example usage:
963+
964+
>>> client.update_realm_profile_field(field_id=1, name='Email')
965+
{'result': 'success', 'msg': ''}
966+
'''
967+
return self.call_endpoint(
968+
url='realm/profile_fields/{}'.format(field_id),
969+
method='PATCH',
970+
request=request,
971+
)
972+
960973
def get_server_settings(self) -> Dict[str, Any]:
961974
'''
962975
Example usage:

0 commit comments

Comments
 (0)