Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 807 Bytes

File metadata and controls

61 lines (44 loc) · 807 Bytes
code type title description
true
page
detach
Detach a device from a tenant

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": {}
}