incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: Redefine the _id
Date Thu, 27 Jan 2011 19:05:03 GMT
On Thu, Jan 27, 2011 at 2:02 PM, Fabio Batalha Cunha dos Santos
<fabio.batalha@scielo.org> 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.

Mime
View raw message