1
0
Fork 0
arangodb/Documentation/Examples/api-collection-create-keyopt

18 lines
435 B
Plaintext

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