update api key sample