REST api update