couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Logsdon <>
Subject Support _id and _rev being null on a POST
Date Fri, 08 Oct 2010 22:43:16 GMT

I'd like to be able to support the following scenario:

curl -XPOST -H"Content-Type: application/json" http://localhost:5984/uta -d
'{"_id": null, "_rev":null,"x":"y"}'

Which returns:

{"error":"bad_request","reason":"Document id must be a string"}

I'd like the above to work the same as this command:

curl -XPOST -H"Content-Type: application/json" http://localhost:5984/uta -d

which returns:


Is there a reason why couchdb doesn't do the same action on a null _id/_rev
as it does when the fields aren't present?



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message