update rest method