def rename_custom_api_key(
    name: str,
    new_name: str,
    api_key: Optional[str] = None,
) -> Dict[str, Any]:

source code

Rename a custom API key.

Arguments:

  • name - Name of the custom API key to be updated.
  • new_name - New name for the custom API key.
  • api_key - If specified, unify API key to be used. Defaults

Returns:

A dictionary containing the response information.

Raises:

  • requests.HTTPError: If the API request fails.
  • KeyError: If the API key is not provided or found in environment variables.