api: Implement PATCH /realm/profile_fields/{field_id} endpoint.
This commit is contained in:
parent
e25ebce27b
commit
9e9b1efdae
|
@ -957,6 +957,19 @@ class Client:
|
|||
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]:
|
||||
'''
|
||||
Example usage:
|
||||
|
|
Loading…
Reference in a new issue