append #
Appends a value to a key. If the key does not exist, it is created.
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
}
Edit this page on Github(opens new window)