1
0
Fork 0
arangodb/Documentation/Examples.ArangoDB/api-index-create-new-unique...

19 lines
377 B
Plaintext

> curl --data @- -X POST --dump - http://localhost:8529/_api/index?collection=112141584
{ "type" : "skiplist", "unique" : true, "fields" : [ "a", "b" ] }
HTTP/1.1 201 Created
content-type: application/json
{
"code": 201,
"fields": [
"a",
"b"
],
"id": "112141584/175722681",
"type": "skiplist",
"isNewlyCreated": true,
"unique": true,
"error": false
}