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.

expireat #

Sets an expiration timestamp on a key. After the timestamp has been reached, the key will automatically be deleted.

The timestamp parameter accepts an Epoch time value.

[Redis documentation]


Query Syntax #

HTTP #

URL: http://kuzzle:7512/ms/_expireat/<_id>
Method: POST
Body:
{
  "timestamp": 1538640821
}

Other protocols #

{
  "controller": "ms",
  "action": "expireat",
  "_id": "<key>",
  "body": {
    "timestamp": 1538640821
  }
}

Arguments #

  • _id: key to update

Body properties #

  • timestamp: timestamp of when the key expires, in Epoch format (integer)

Response #

Returns either 0 (command failed), or 1 (command succeeded).

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