Problem with the update rest api?