Update real document in PUT method and return it