shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF
{
"name" : "testCollectionUsers",
"keyOptions" : {
"type" : "autoincrement",
"increment" : 5,
"allowUserKeys" : true
}
}
EOF
HTTP/1.1 OK
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"error" : false,
"code" : 200,
"waitForSync" : false,
"type" : 2,
"status" : 3,
"journalSize" : 33554432,
"keyOptions" : {
"allowUserKeys" : true,
"type" : "autoincrement",
"offset" : 0,
"increment" : 5,
"lastValue" : 0
},
"globallyUniqueId" : "h8B2B671BCFD0/102822",
"statusString" : "loaded",
"id" : "102822",
"name" : "testCollectionUsers",
"doCompact" : true,
"isSystem" : false,
"indexBuckets" : 8,
"isVolatile" : false
}