Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.36 KB

SetUserApiKeyRequest.md

File metadata and controls

30 lines (21 loc) · 1.36 KB

SetUserApiKeyRequest

Properties

Name Type Description Notes
name str The name which will be assigned to the new api key.
role int The role which will be assigned to the new api key. Either 0 (read), 1 (read and write at the level of the currently auth'ed user). The auth'ed user must have a role greater than or equal to the role being assigned which means they must be an admin (1) or owner (2) of the organization to assign write permissions with a role of 1.

Example

from trieve_py_client.models.set_user_api_key_request import SetUserApiKeyRequest

# TODO update the JSON string below
json = "{}"
# create an instance of SetUserApiKeyRequest from a JSON string
set_user_api_key_request_instance = SetUserApiKeyRequest.from_json(json)
# print the JSON string representation of the object
print(SetUserApiKeyRequest.to_json())

# convert the object into a dict
set_user_api_key_request_dict = set_user_api_key_request_instance.to_dict()
# create an instance of SetUserApiKeyRequest from a dict
set_user_api_key_request_form_dict = set_user_api_key_request.from_dict(set_user_api_key_request_dict)

[Back to Model list] [Back to API list] [Back to README]