rest api update