update rest file