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.

rpush #

Appends values at the end of a list.

If the destination list does not exist, it is created holding an empty list before performing the operation.

[Redis documentation]


Query Syntax #

HTTP #

URL: http://kuzzle:7512/ms/_rpush/<_id>
Method: POST
Body:
{
  "values": ["value1", "value2", "..."]
}

Other protocols #

{
  "controller": "ms",
  "action": "rpush",
  "_id": "<key>",
  "body": {
    "values": ["value1", "value2", "..."]
  }
}

Argument #

  • _id: list key identifier

Body properties #

  • values: an array of values to push to the list

Response #

Returns the updated list length.

{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "rpush",
  "collection": null,
  "index": null,
  "result": 12
}