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