couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Candler <>
Subject POST with _id
Date Mon, 03 Aug 2009 09:04:24 GMT
Is there any reason why, if you POST a document to a database and that
document has an "_id" member, why this is ignored and a server-generated _id
is used instead?

$ curl -X PUT
$ curl --data-binary '{"_id":"foo","bar":"baz"}' -X POST

This seems inconsisent with a POST to _bulk_docs

$ curl --data-binary '{"docs":[{"_id":"foo","bar":"baz"}]}' -X POST



View raw message