hincrbyfloat #
Increments the number stored in a hash field by the provided float value.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/ms/_hincrbyfloat/<_id>
Method: POST
Body:
{
"field": "field name",
"value": <increment float value>
}
Other protocols #
{
"controller": "ms",
"action": "hincrbyfloat",
"_id": "<key>",
"body": {
"field": "field name",
"value": <increment float value>
}
}
Arguments #
_id
: hash key identifier
Body properties #
field
: the hash field to incrementvalue
: the float 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": "hincrbyfloat",
"collection": null,
"index": null,
"result": "3.14159"
}
Increments the number stored in a hash field by the provided float value.
Edit this page on Github(opens new window)