update the rest api