create

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

Query

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

Response

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

When creating a document or a collection, Kuzzle will automatically create a data index if needed. But in some cases, you may want to create an empty index directly, prior to storing any document in it.

Create an index in Kuzzle's persistent storage layer.