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