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.

rpoplpush #

Removes the last element of a list, and pushes it back at the start of another list.

[Redis documentation]


Query Syntax #

HTTP #

URL: http://kuzzle:7512/ms/_rpoplpush
Method: POST
Body:
{
  "source": "<key>",
  "destination": "<key>"
}

Other protocols #

{
  "controller": "ms",
  "action": "rpoplpush",
  "body": {
    "source": "<key>",
    "destination": "<key>"
  }
}

Body properties #

  • destination: the destination list to push the value into
  • source: the source list from which the value is popped

Response #

Returns the popped/pushed element.

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