Skip to content

Commit 30fa7c5

Browse files
akashaviatortimabbott
authored andcommitted
api: Implement GET /realm/profile_fields endpoint.
1 parent 16737e4 commit 30fa7c5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

zulip/zulip/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,18 @@ def remove_realm_filter(self, filter_id: int) -> Dict[str, Any]:
907907
method='DELETE',
908908
)
909909

910+
def get_realm_profile_fields(self) -> Dict[str, Any]:
911+
'''
912+
Example usage:
913+
914+
>>> client.get_realm_profile_fields()
915+
{'result': 'success', 'msg': '', 'custom_fields': [{...}, {...}, {...}, {...}]}
916+
'''
917+
return self.call_endpoint(
918+
url='realm/profile_fields',
919+
method='GET',
920+
)
921+
910922
def get_server_settings(self) -> Dict[str, Any]:
911923
'''
912924
Example usage:

0 commit comments

Comments
 (0)