Adds the PUT method for /preference/:id