Core
API v2.x
2

lpop #

Removes and returns the first element of a list.

[Redis documentation]


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/ms/_lpop/<_id>
Method: POST

Other protocols #

Copied to clipboard!
{
  "controller": "ms",
  "action": "lpop",
  "_id": "<key>"
}

Argument #

  • _id: list key identifier

Response #

Returns the removed value.

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