update api refresh