exists #
Available since 2.0.0
Checks if a document exists.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/<index>/<collection>/<_id>/_exists
Method: GET
Other protocols #
{
"index": "<index>",
"collection": "<collection>",
"controller": "document",
"action": "exists",
"_id": "<documentId>"
}
Kourou #
kourou document:exists <index> <collection> <id>
Arguments #
_id
: document unique identifiercollection
: collection nameindex
: index name
Response #
Returns a boolean.
{
"status": 200,
"error": null,
"index": "<index>",
"collection": "<collection>",
"controller": "document",
"action": "exists",
"requestId": "<unique request identifier>",
"result": true
}
Edit this page on Github(opens new window)