update api to public url