update api_url