shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products <<EOF
{ "Hello": "World", "_key" : "lock" }
EOF
HTTP/1.1 Created
content-type: application/json; charset=utf-8
etag: "_ZXF6WFO--A"
location: /_db/_system/_api/document/products/lock
x-content-type-options: nosniff
{
"_id" : "products/lock",
"_key" : "lock",
"_rev" : "_ZXF6WFO--A"
}
shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/document/products?overwrite=true <<EOF
{ "Hello": "Universe", "_key" : "lock" }
EOF
HTTP/1.1 Created
content-type: application/json; charset=utf-8
etag: "_ZXF6WFa--A"
location: /_db/_system/_api/document/products/lock
x-content-type-options: nosniff
{
"_id" : "products/lock",
"_key" : "lock",
"_rev" : "_ZXF6WFa--A",
"_oldRev" : "_ZXF6WFO--A"
}