safer PUT request
update a transaction