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

21 lines
463 B
Plaintext

shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/index?collection=products
{ "type": "hash", "unique" : true, "fields" : [ "a", "b" ] }
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
"id" : "products/1316513238",
"type" : "hash",
"unique" : true,
"sparse" : false,
"selectivityEstimate" : 1,
"fields" : [
"a",
"b"
],
"isNewlyCreated" : true,
"error" : false,
"code" : 201
}