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

19 lines
371 B
Plaintext

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