Core
API v2.x
2

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
}