Core
API v2.x
2

rpop #

Removes the last element of a list and returns it.

[Redis documentation]


Query Syntax #

HTTP #

URL: http://kuzzle:7512/ms/_rpop/<_id>
Method: POST

Other protocols #

{
  "controller": "ms",
  "action": "rpop",
  "_id": "<key>"
}

Argument #

  • _id: list key identifier

Response #

Returns the removed element.

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