1
0
Fork 0
arangodb/Documentation/Examples/RestDocumentHandlerUpdateDo...

18 lines
437 B
Plaintext

shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/document/products/2230539676?rev=2230867356 <<EOF
{"other":"content"}
EOF
HTTP/1.1 412 Precondition Failed
content-type: application/json; charset=utf-8
etag: "2230539676"
{
"error" : true,
"code" : 412,
"errorNum" : 1200,
"errorMessage" : "precondition failed",
"_id" : "products/2230539676",
"_rev" : "2230539676",
"_key" : "2230539676"
}