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