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.

append #

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

[Redis documentation]


Query Syntax #

HTTP #

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

Other protocols #

{
  "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.

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