zincrby

Increments the score of a sorted set member by the provided value.

[Redis documentation]


Query Syntax

HTTP

Copied to clipboard!
URL: http://kuzzle:7512/ms/_zincrby/<_id>
Method: POST
Body:
Copied to clipboard!
{
  "member": "<member>",
  "value": <integer>
}

Other protocols

Copied to clipboard!
{
  "controller": "ms",
  "action": "zincrby",
  "_id": "<key>",
  "body": {
    "member": "<member>",
    "value": <integer>
  }
}

Arguments

  • _id: sorted set identifier

Body properties

  • member: sorted set value
  • value: integer value used to increment the member's score

Response

Returns the updated member's score value.

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