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