Updates the API base_url.