lpushx #
Prepends the specified value to a list, only if the key already exists and if it holds a list.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/ms/_lpushx/<_id>
Method: POST
Body:
{
"value": "<value>"
}
Other protocols #
{
"controller": "ms",
"action": "lpushx",
"_id": "<key>",
"body": {
"value": "<value>"
}
}
Argument #
_id
: list key identifier
Body properties #
value
: value to push to the list
Response #
Returns the updated length of the list.
{
"requestId": "<unique request identifier>",
"status": 200,
"error": null,
"controller": "ms",
"action": "lpushx",
"collection": null,
"index": null,
"result": 2
}
Edit this page on Github(opens new window)