Core
API v2.x
2

zremrangebyscore #

Removes members from a sorted set, with a score between the provided interval.

[Redis documentation]


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/ms/_zremrangebyscore/<_id>
Method: DELETE
Body:
Copied to clipboard!
{
  "min": "<min interval>",
  "max": "<max interval>"
}

Other protocols #

Copied to clipboard!
{
  "controller": "ms",
  "action": "zremrangebyscore",
  "_id": "<key>",
  "body": {
    "min": "<min interval>",
    "max": "<max interval>"
  }
}

Arguments #

  • _id: sorted set identifier

Body properties #

  • min: minimum score value
  • max: maximum score value

The min and max values are inclusive, but this behavior can be changed (see the redis documentation).


Response #

Returns the number of removed elements.

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