shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/transaction <<EOF { "collections" : { "write" : "products" }, "action" : "function () {var db = require('@arangodb').db;db.products.save({ _key: 'abc'});db.products.save({ _key: 'abc'});}" } EOF HTTP/1.1 Conflict content-type: application/json; charset=utf-8 x-content-type-options: nosniff { "code" : 409, "error" : true, "errorMessage" : "unique constraint violated - in index primary of type primary over '_key'; conflicting key: abc", "errorNum" : 1210 }