shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103330 <<EOF { "hello" : "world" } EOF HTTP/1.1 undefined content-type: application/json; charset=utf-8 etag: "_XUJy9Ju--_" location: /_db/_system/_api/document/products/103330 x-content-type-options: nosniff { "_id" : "products/103330", "_key" : "103330", "_rev" : "_XUJy9Ju--_", "_oldRev" : "_XUJy9Jq--B" } shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103330 <<EOF { "numbers" : { "one" : 1, "two" : 2, "three" : 3, "empty" : null } } EOF HTTP/1.1 undefined content-type: application/json; charset=utf-8 etag: "_XUJy9J2--_" location: /_db/_system/_api/document/products/103330 x-content-type-options: nosniff { "_id" : "products/103330", "_key" : "103330", "_rev" : "_XUJy9J2--_", "_oldRev" : "_XUJy9Ju--_" } shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103330 HTTP/1.1 undefined content-type: application/json; charset=utf-8 etag: "_XUJy9J2--_" x-content-type-options: nosniff { "_key" : "103330", "_id" : "products/103330", "_rev" : "_XUJy9J2--_", "one" : "world", "hello" : "world", "numbers" : { "one" : 1, "two" : 2, "three" : 3, "empty" : null } } shell> curl -X PATCH --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products/103330?keepNull=false <<EOF { "hello" : null, "numbers" : { "four" : 4 } } EOF HTTP/1.1 undefined content-type: application/json; charset=utf-8 etag: "_XUJy9KK--_" location: /_db/_system/_api/document/products/103330 x-content-type-options: nosniff { "_id" : "products/103330", "_key" : "103330", "_rev" : "_XUJy9KK--_", "_oldRev" : "_XUJy9J2--_" } shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/document/products/103330 HTTP/1.1 undefined content-type: application/json; charset=utf-8 etag: "_XUJy9KK--_" x-content-type-options: nosniff { "_key" : "103330", "_id" : "products/103330", "_rev" : "_XUJy9KK--_", "one" : "world", "numbers" : { "empty" : null, "one" : 1, "three" : 3, "two" : 2, "four" : 4 } }