# File lib/rhc/rest/domain.rb, line 50
      def update(new_id)
        logger.debug "Updating domain #{self.id} to #{new_id}" if @mydebug
        url = @links['UPDATE']['href']
        method =  @links['UPDATE']['method']
        payload = {:id => new_id}
        # 5 minute timeout as this may take time if there are a lot of apps
        request = new_request(:url => url, :method => method, :headers => @@headers, :payload => payload, :timeout=> 300)
        return request(request)
      end