shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products?returnNew=true <<EOF
{"Hello":"World"}
EOF
HTTP/1.1 Accepted
content-type: application/json; charset=utf-8
etag: "_YOn1PHa--B"
location: /_db/_system/_api/document/products/103900
x-content-type-options: nosniff
{
"_id" : "products/103900",
"_key" : "103900",
"_rev" : "_YOn1PHa--B",
"new" : {
"_key" : "103900",
"_id" : "products/103900",
"_rev" : "_YOn1PHa--B",
"Hello" : "World"
}
}