pub async fn create_api_key(
configuration: &Configuration,
api_key_request: Option<ApiKeyRequest>,
) -> Result<ApiKeyResponse, Error<CreateApiKeyError>>
Expand description
Creates an API key. You can optionally specify a unique Id for the key, if not provided one will be generated. an API key can only be created with equal or lesser authority. An API key cannot create another API key unless it is granted to that API key. If an API key is locked to a tenant, it can only create API Keys for that same tenant.