shell> curl -X POST --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 409 Conflict content-type: application/json; charset=utf-8 x-content-type-options: nosniff { "error" : true, "errorMessage" : "unique constraint violated - in index 0 of type primary over [\"_key\"]; conflicting key: abc", "code" : 409, "errorNum" : 1210 }