Core
API v2.x
2

rpoplpush #

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

[Redis documentation]


Query Syntax #

HTTP #

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

Other protocols #

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

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