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