update for api_endpoint