update REST method