smove #
Moves a member from a set of unique values to another.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/ms/_smove/<_id>
Method: POST
Body:
{
"destination": "<destination key>",
"member": "<member>"
}
Other protocols #
{
"controller": "ms",
"action": "smove",
"_id": "<key>",
"body": {
"destination": "<destination key>",
"member": "<member>"
}
}
Argument #
_id
: source set identifier
Body properties #
destination
: destination set identifiermember
: member value to move
Response #
Returns either 0
(command failed), or 1
(command succeeded).
{
"requestId": "<unique request identifier>",
"status": 200,
"error": null,
"controller": "ms",
"action": "smove",
"collection": null,
"index": null,
"result": 1
}
Edit this page on Github(opens new window)