add possibility to update an object with a PUT request