update REST api