Skip to content

Commit a85ac15

Browse files
akashaviatortimabbott
authored andcommitted
api: Implement DELETE /realm/profile_fields/{field_id} endpoint.
1 parent 2239277 commit a85ac15

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
@@ -932,6 +932,18 @@ def create_realm_profile_field(self, **request: Any) -> Dict[str, Any]:
932932
request=request,
933933
)
934934

935+
def remove_realm_profile_field(self, field_id: int) -> Dict[str, Any]:
936+
'''
937+
Example usage:
938+
939+
>>> client.remove_realm_profile_field(field_id=9)
940+
{'result': 'success', 'msg': ''}
941+
'''
942+
return self.call_endpoint(
943+
url='realm/profile_fields/{}'.format(field_id),
944+
method='DELETE',
945+
)
946+
935947
def get_server_settings(self) -> Dict[str, Any]:
936948
'''
937949
Example usage:

0 commit comments

Comments
 (0)