Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 28933 invoked from network); 27 Jan 2011 19:46:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jan 2011 19:46:01 -0000 Received: (qmail 75811 invoked by uid 500); 27 Jan 2011 19:46:00 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 75762 invoked by uid 500); 27 Jan 2011 19:45:59 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 75739 invoked by uid 99); 27 Jan 2011 19:45:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jan 2011 19:45:59 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.213.180] (HELO mail-yx0-f180.google.com) (209.85.213.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jan 2011 19:45:54 +0000 Received: by yxd30 with SMTP id 30so786243yxd.11 for ; Thu, 27 Jan 2011 11:45:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.178.133 with SMTP id bm5mr2675117icb.343.1296157531255; Thu, 27 Jan 2011 11:45:31 -0800 (PST) Received: by 10.42.227.71 with HTTP; Thu, 27 Jan 2011 11:45:31 -0800 (PST) In-Reply-To: References: Date: Thu, 27 Jan 2011 17:45:31 -0200 Message-ID: Subject: Re: Redefine the _id From: Fabio Batalha Cunha dos Santos To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=90e6ba6e8d90393249049ad931ed --90e6ba6e8d90393249049ad931ed Content-Type: text/plain; charset=ISO-8859-1 Hi Paul, Yes This issue I now. I want to redefine an id that was already defined automatically by the couchDB. I already have a lot of register with _id as UUID, I want to change it to another value. Thanks, *Fabio Batalha C. Santos* Colegiado SciELO www.scielo.org FAPESP - CNPq - BIREME - FapUNIFESP On Thu, Jan 27, 2011 at 5:05 PM, Paul Davis wrote: > On Thu, Jan 27, 2011 at 2:02 PM, Fabio Batalha Cunha dos Santos > wrote: > > Hello all, > > > > I'd like to know if is it possible to redefine the _id value. I intend to > > user a different id from the automatic UUID generated by the couchdb. > > > > Thanks, > > *Fabio Batalha C. Santos* > > Colegiado SciELO > > www.scielo.org > > FAPESP - CNPq - BIREME - FapUNIFESP > > > > Just put to /db_name/docid or POST with an {"_id": "my_id", ...} > > Couch only generates an id when you haven't provided one. > --90e6ba6e8d90393249049ad931ed--