views:

264

answers:

2

Hi guys.

I searched and didn't found, can I delete a field of a couchdb's document using curl ?

The most I can do is delete a document :(

 curl -X DELETE http://localhost:5984/users/jack?rev=1-cee2abbbe4afefa9b3b5db10260c0c94

Thanks.

+5  A: 

I believe you're supposed to execute a PUT request containing the modified document, and the _rev of the version you're modifying.

Matthew Flaschen
+4  A: 

Hi. If you want delete any field, you need edit document via PUT method, where you send all fields of document, id and rev. included, but without field for delete. Http method DELETE is only for delete complete document, no field in that:)

podolinek