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.

exists #

Checks whether a collection exists.


Query Syntax #

HTTP #

URL: http://kuzzle:7512/<index>/<collection>/_exists
Method: GET

Other protocols #

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

Arguments #

  • collection: collection name
  • index: index name

Response #

Returns a boolean telling whether the provided collection exists:

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

Possible errors #