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