update the api key