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

source code

Rename a custom endpoint.

Arguments:

  • name - Name of the custom endpoint to be updated.
  • new_name - New name for the custom endpoint.
  • 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.