Core
API v2.x
2

hkeys #

Returns all field names contained in a hash.

[Redis documentation]


Query Syntax #

HTTP #

URL: http://kuzzle:7512/ms/_hkeys/<_id>
Method: GET

Other protocols #

{
  "controller": "ms",
  "action": "hkeys",
  "_id": "<key>"
}

Arguments #

  • _id: hash key identifier

Response #

Returns an array of hash field names.

{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "hkeys",
  "collection": null,
  "index": null,
  "result": [
    "field1",
    "field2",
    "..."
  ]
}