append

Appends a value to a key. If the key does not exist, it is created.

[Redis documentation]


Query Syntax

HTTP

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

Other protocols

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

Arguments

  • key: key to update or create

Body properties

  • value: the value to append

Response

Returns the updated value length.

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