PUT task to REST API to update