api: Implement POST /realm/profile_fields endpoint.

This commit is contained in:
Kartik Srivastava 2020-05-27 22:35:51 +05:30 committed by Tim Abbott
parent 30fa7c5d2f
commit 22392779a3

View file

@ -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: