Official Plugins (Kuzzle v2.x)
Device Manager v0.x
2

detach #

Detach a device from a tenant.


Query Syntax #

HTTP #

URL: http://kuzzle:7512/_/device-manager/devices/:_id/_detach[?refresh=wait_for]
Method: DELETE

Other protocols #

{
  "controller": "device-manager/device",
  "action": "detach",
  "_id": "<deviceId>"
}

Kourou #

kourou device-manager/device:detach --id <deviceId>

Arguments #

Optional: #

  • refresh: if set to wait_for, Kuzzle will not respond until the documents are indexed

Response #

{
  "status": 200,
  "error": null,
  "index": "<index>",
  "controller": "device-manager/device",
  "action": "detach",
  "requestId": "<unique request identifier>",
  "result": {}
}