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 400 Bad Request content-type: application/json; charset=utf-8 x-content-type-options: nosniff { "message" : "unique constraint violated - in index 0 of type primary over [\"_key\"]", "error" : true, "code" : 400, "errorNum" : 1210, "errorMessage" : "unique constraint violated - in index 0 of type primary over [\"_key\"]" }