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.

touch #

Alters the last access time of multiple keys. A key is ignored if it does not exist.

[Redis documentation]


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/ms/_touch
Method: POST
Body:
Copied to clipboard!
{
  "keys": ["key1", "key2", "..."]
}

Other protocols #

Copied to clipboard!
{
  "controller": "ms",
  "action": "touch",
  "body": {
    "keys": ["key1", "key2", "..."]
  }
}

Arguments #

  • keys: array of key identifiers to alter

Response #

Returns the number of altered keys.

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