hincrby #
Increments the number stored in a hash field by the provided integer value.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/ms/_hincrby/<_id>
Method: POST
Body:{
"field": "field name",
"value": <increment integer value>
}Other protocols #
{
"controller": "ms",
"action": "hincrby",
"_id": "<key>",
"body": {
"field": "field name",
"value": <increment integer value>
}
}Arguments #
_id: hash key identifier
Body properties #
field: the hash field to incrementvalue: the integer to add to the field value
Response #
Returns the updated value for the incremented hash field.
{
"requestId": "<unique request identifier>",
"status": 200,
"error": null,
"controller": "ms",
"action": "hincrby",
"collection": null,
"index": null,
"result": 42
}