Core
API v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

create #

Creates a new index in Kuzzle.


Query Syntax #

HTTP #

URL: http://kuzzle:7512/<index>/_create
Method: POST

Other protocols #

{
  "index": "<index>",
  "controller": "index",
  "action": "create"
}

Arguments #

  • index: index name to create

Response #

Returns a confirmation that the index is being created:

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

Possible errors #