Core
API v2.x
2

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 #

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

Other protocols #

Copied to clipboard!
{
  "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.

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