update rest config