Core
API v2.x
2

# type

Returns the type of the value held by a key.

[Redis documentation]


# Query Syntax

# HTTP

Copied to clipboard!
URL: http://kuzzle:7512/ms/_type/<_id>
Method: GET

# Other protocols

Copied to clipboard!
{
  "controller": "ms",
  "action": "type",
  "_id": "<key>"
}

# Arguments

  • _id: key identifier

# Response

Returns one of the following: hash, list, string, set, zset.

Copied to clipboard!
{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "type",
  "collection": null,
  "index": null,
  "result": "list"
}