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.

zremrangebyrank #

Removes members from a sorted set, with their position in the set within a provided index range.

Positions are 0-based, meaning the first member of the set has a position of 0.

[Redis documentation]


Query Syntax #

HTTP #

URL: http://kuzzle:7512/ms/_zremrangebyrank/<_id>
Method: DELETE
Body:
{
  "start": "<index start>",
  "stop": "<index stop>"
}

Other protocols #

{
  "controller": "ms",
  "action": "zremrangebyrank",
  "_id": "<key>",
  "body": {
    "start": "<index start>",
    "stop": "<index stop>"
  }
}

Arguments #

  • _id: sorted set identifier

Body properties #

  • start: starting index position, inclusive
  • stop: ending index position, inclusive

Response #

Returns the number of removed elements.

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