api: Implement POST /realm/profile_fields endpoint.
This commit is contained in:
parent
30fa7c5d2f
commit
22392779a3
|
@ -919,6 +919,19 @@ class Client:
|
|||
method='GET',
|
||||
)
|
||||
|
||||
def create_realm_profile_field(self, **request: Any) -> Dict[str, Any]:
|
||||
'''
|
||||
Example usage:
|
||||
|
||||
>>> client.create_realm_profile_field(name='Phone', hint='Contact No.', field_type=1)
|
||||
{'result': 'success', 'msg': '', 'id': 9}
|
||||
'''
|
||||
return self.call_endpoint(
|
||||
url='realm/profile_fields',
|
||||
method='POST',
|
||||
request=request,
|
||||
)
|
||||
|
||||
def get_server_settings(self) -> Dict[str, Any]:
|
||||
'''
|
||||
Example usage:
|
||||
|
|
Loading…
Reference in a new issue