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

This commit is contained in:
Kartik Srivastava 2020-05-28 02:18:18 +05:30 committed by Tim Abbott
parent e25ebce27b
commit 9e9b1efdae

View file

@ -957,6 +957,19 @@ class Client:
request=request, 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]: def get_server_settings(self) -> Dict[str, Any]:
''' '''
Example usage: Example usage: