create

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
  }
}

When creating a document, Kuzzle will automatically create a collection if needed. But in some cases, you may want to create an empty collection directly, prior to storing any document in it.
This method does nothing if the collection already exists.