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

20 lines
526 B
Plaintext

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF
{"name":"testCollectionUsers","keyOptions":{"type":"autoincrement","increment":5,"allowUserKeys":true}}
EOF
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
location: /_db/_system/_api/collection/testCollectionUsers
{
"id" : "619115403",
"name" : "testCollectionUsers",
"waitForSync" : false,
"isVolatile" : false,
"isSystem" : false,
"status" : 3,
"type" : 2,
"error" : false,
"code" : 200
}