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