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