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.

rpushx #

Appends a value at the end of a list, only if the destination key already exists, and if it holds a list.

[Redis documentation]


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/ms/_rpushx/<_id>
Method: POST
Body:
Copied to clipboard!
{
  "value": "<value>"
}

Other protocols #

Copied to clipboard!
{
  "controller": "ms",
  "action": "rpushx",
  "_id": "<key>",
  "body": {
    "value": "<value>"
  }
}

Argument #

  • _id: list key identifier

Body properties #

  • value: the value to push to the list

Response #

Returns the updated list length.

Copied to clipboard!
{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "rpushx",
  "collection": null,
  "index": null,
  "result": 12
}