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

This commit is contained in:
Kartik Srivastava 2020-05-27 22:38:23 +05:30 committed by Tim Abbott
parent 22392779a3
commit a85ac15d2d

View file

@ -932,6 +932,18 @@ class Client:
request=request,
)
def remove_realm_profile_field(self, field_id: int) -> Dict[str, Any]:
'''
Example usage:
>>> client.remove_realm_profile_field(field_id=9)
{'result': 'success', 'msg': ''}
'''
return self.call_endpoint(
url='realm/profile_fields/{}'.format(field_id),
method='DELETE',
)
def get_server_settings(self) -> Dict[str, Any]:
'''
Example usage: