Core
API v2.x
2

# smove

Moves a member from a set of unique values to another.

[Redis documentation]


# Query Syntax

# HTTP

Copied to clipboard!
URL: http://kuzzle:7512/ms/_smove/<_id>
Method: POST
Body:
Copied to clipboard!
{
  "destination": "<destination key>",
  "member": "<member>"
}

# Other protocols

Copied to clipboard!
{
  "controller": "ms",
  "action": "smove",
  "_id": "<key>",
  "body": {
    "destination": "<destination key>",
    "member": "<member>"
  }
}

# Argument

  • _id: source set identifier

# Body properties

  • destination: destination set identifier
  • member: member value to move

# Response

Returns either 0 (command failed), or 1 (command succeeded).

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