Core
API v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

lpushx #

Prepends the specified value to a list, only if the key already exists and if it holds a list.

[Redis documentation]


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
}