create

Since Kuzzle v1.0.0

URL: http://kuzzle:7512/<index>/<collection>
Method: PUT

Query

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

Response

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

Creates a new collection in Kuzzle's persistent storage layer, under the provided data index.

This method does nothing if the collection already exists.