create

Creates a new index in Kuzzle.


Query Syntax

HTTP

Copied to clipboard!
URL: http://kuzzle:7512/<index>/_create
Method: POST

Other protocols

Copied to clipboard!
{
  "index": "<index>",
  "controller": "index",
  "action": "create"
}

Arguments

  • index: index name to create

Response

Returns a confirmation that the index is being created:

Copied to clipboard!
{
  "status": 200,
  "error": null,
  "index": "<index>",
  "action": "create",
  "controller": "index",
  "requestId": "<unique request identifier>",
  "result": {
    "acknowledged": true,
    "shards_acknowledged": true
  }
}

Possible errors