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