Core
API v2.x
2

# rpushx

Appends a value at the end of a list, only if the destination key already exists, and if it holds a list.

[Redis documentation]


# Query Syntax

# HTTP

Copied to clipboard!
URL: http://kuzzle:7512/ms/_rpushx/<_id>
Method: POST
Body:
Copied to clipboard!
{
  "value": "<value>"
}

# Other protocols

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

# Argument

  • _id: list key identifier

# Body properties

  • value: the value 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": "rpushx",
  "collection": null,
  "index": null,
  "result": 12
}