code | type | title | description |
---|---|---|---|
true |
page |
detach |
Detach a device from a tenant |
Detach a device from a tenant.
URL: http://kuzzle:7512/_/device-manager/devices/:_id/_detach[?refresh=wait_for]
Method: DELETE
{
"controller": "device-manager/device",
"action": "detach",
"_id": "<deviceId>"
}
kourou device-manager/device:detach --id <deviceId>
refresh
: if set towait_for
, Kuzzle will not respond until the documents are indexed
{
"status": 200,
"error": null,
"index": "<index>",
"controller": "device-manager/device",
"action": "detach",
"requestId": "<unique request identifier>",
"result": {}
}