def METHOD_NAME(self, auth: Authentication, account: Account) -> Account:
    """Generate a new API key for this account."""
    data = {
        "auth": json.dumps(asdict(auth)),
        "account": json.dumps(asdict(account)),
    }
    response = requests.put(f"{self.base_url}/api/account/api_key", data=data).json()
    RemoteService._check_response(response)
    return from_dict(Account, response)