shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/10950 <<EOF { "hello" : "world" } EOF HTTP/1.1 202 Accepted content-type: application/json; charset=utf-8 etag: "_WE2VHRa--_" x-content-type-options: nosniff location: /_db/_system/_api/document/products/10950 { "_id" : "products/10950", "_key" : "10950", "_rev" : "_WE2VHRa--_", "_oldRev" : "_WE2VHRW--_" } shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/10950 <<EOF { "numbers" : { "one" : 1, "two" : 2, "three" : 3, "empty" : null } } EOF HTTP/1.1 202 Accepted content-type: application/json; charset=utf-8 etag: "_WE2VHRm--_" x-content-type-options: nosniff location: /_db/_system/_api/document/products/10950 { "_id" : "products/10950", "_key" : "10950", "_rev" : "_WE2VHRm--_", "_oldRev" : "_WE2VHRa--_" } shell> curl --dump - http://localhost:8529/_api/document/products/10950 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 etag: "_WE2VHRm--_" x-content-type-options: nosniff { "_key" : "10950", "_id" : "products/10950", "_rev" : "_WE2VHRm--_", "one" : "world", "hello" : "world", "numbers" : { "one" : 1, "two" : 2, "three" : 3, "empty" : null } } shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/document/products/10950?keepNull=false <<EOF { "hello" : null, "numbers" : { "four" : 4 } } EOF HTTP/1.1 202 Accepted content-type: application/json; charset=utf-8 etag: "_WE2VHS---_" x-content-type-options: nosniff location: /_db/_system/_api/document/products/10950 { "_id" : "products/10950", "_key" : "10950", "_rev" : "_WE2VHS---_", "_oldRev" : "_WE2VHRm--_" } shell> curl --dump - http://localhost:8529/_api/document/products/10950 HTTP/1.1 200 OK content-type: application/json; charset=utf-8 etag: "_WE2VHS---_" x-content-type-options: nosniff { "_key" : "10950", "_id" : "products/10950", "_rev" : "_WE2VHS---_", "one" : "world", "numbers" : { "empty" : null, "one" : 1, "three" : 3, "two" : 2, "four" : 4 } }