update rest api