zincrby
Increments the score of a sorted set member by the provided value.
Query Syntax
HTTP
URL: http://kuzzle:7512/ms/_zincrby/<_id>
Method: POST
Body:
{
"member": "<member>",
"value": <integer>
}
Other protocols
{
"controller": "ms",
"action": "zincrby",
"_id": "<key>",
"body": {
"member": "<member>",
"value": <integer>
}
}
Arguments
_id
: sorted set identifier
Body properties
member
: sorted set valuevalue
: integer value used to increment the member's score
Response
Returns the updated member's score value.
{
"requestId": "<unique request identifier>",
"status": 200,
"error": null,
"controller": "ms",
"action": "zincrby",
"collection": null,
"index": null,
"result": 26
}