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