shell> curl -X PUT --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/simple/replace-by-example <<EOF { "collection" : "products", "example" : { "a" : { "j" : 1 } }, "newValue" : { "foo" : "bar" }, "options" : { "limit" : 3, "waitForSync" : true } } EOF HTTP/1.1 OK content-type: application/json; charset=utf-8 x-content-type-options: nosniff { "replaced" : 1, "error" : false, "code" : 200 }