Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.59 KB

CreateApiKeyRequestDto.md

File metadata and controls

31 lines (23 loc) · 1.59 KB

CreateApiKeyRequestDto

The request parameters for creating a new API key.

Properties

Name Type Description Notes
name str The label that tells this key apart in the key list. It is required, may be up to 30 characters long, and does not have to be unique.
permissions List[str] The scopes the key may use. Every value has to come from GET api/2.0/keys/permissions, an unknown value or an empty array is rejected, and passing * or omitting the field records a key without scope restrictions. [optional]
expires_in_days int The lifetime of the key in days, counted from the moment it is created, from 1 to 365. Omit it to create a key that never expires. [optional]

Example

from docspace_api_sdk.models.create_api_key_request_dto import CreateApiKeyRequestDto

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

# convert the object into a dict
create_api_key_request_dto_dict = create_api_key_request_dto_instance.to_dict()
# create an instance of CreateApiKeyRequestDto from a dict
create_api_key_request_dto_from_dict = CreateApiKeyRequestDto.from_dict(create_api_key_request_dto_dict)

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