rename #
Renames a key.
If the new key name is already used, then it is overwritten.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/ms/_rename/<_id>
Method: POST
Body:
{
"newkey": "<new key name>"
}
Other protocols #
{
"controller": "ms",
"action": "rename",
"_id": "<key>",
"body": {
"newkey": "<new key name>"
}
}
Argument #
_id
: key to rename
Body properties #
newkey
: the new key name
Response #
Returns an acknowledgement.
{
"requestId": "<unique request identifier>",
"status": 200,
"error": null,
"controller": "ms",
"action": "rename",
"collection": null,
"index": null,
"result": "OK"
}
Edit this page on Github(opens new window)