shell> curl --dump - http://localhost:8529/_api/document/products/731912914 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 etag: "731912914" { "inhabitants" : { "china" : 1366980000, "india" : 1263590000, "usa" : 319220000 }, "_id" : "products/731912914", "_rev" : "731912914", "_key" : "731912914" } shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/731912914?mergeObjects=true <<EOF { "inhabitants" : { "indonesia" : 252164800, "brazil" : 203553000 } } EOF shell> curl --dump - http://localhost:8529/_api/document/products/731912914 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 etag: "732437202" { "inhabitants" : { "china" : 1366980000, "india" : 1263590000, "usa" : 319220000, "brazil" : 203553000, "indonesia" : 252164800 }, "_id" : "products/731912914", "_rev" : "732437202", "_key" : "731912914" } shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/731912914?mergeObjects=false <<EOF { "inhabitants" : { "pakistan" : 188346000 } } EOF HTTP/1.1 202 Accepted content-type: application/json; charset=utf-8 etag: "732895954" location: /_db/_system/_api/document/products/731912914 { "error" : false, "_id" : "products/731912914", "_rev" : "732895954", "_key" : "731912914" } shell> curl --dump - http://localhost:8529/_api/document/products/731912914 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 etag: "732895954" { "inhabitants" : { "pakistan" : 188346000 }, "_id" : "products/731912914", "_rev" : "732895954", "_key" : "731912914" }