You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/1/guides/devices/index.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,23 @@ The format used can be either __CSV__ in the form of a string in the format `ten
118
118
119
119
When attached, all devices documents are copied inside the `devices` collections of all different tenant index.
120
120
121
+
## Detach a sensor from a tenant
122
+
123
+
Sensors can be detached to tenant by using the [device-manager/sensor:detach](/kuzzle-iot-platform/device-manager/1/controllers/sensor/detach) API action.
124
+
125
+
When detached, the sensor document is deleted from the `sensors` collection of the tenant index.
126
+
127
+
the `tenantId` property is set to `null` in the `device-manager` index.
128
+
## Detach multiple sensors from multiple tenants
129
+
130
+
Multiple different Sensors can also be detached to multiple defferents tenant by using the [device-manager/sensor:mDetach](/kuzzle-iot-platform/device-manager/1/controllers/sensor/mDetach) API action.
131
+
132
+
The format used can be either __CSV__ in the form of a string in the format "tenantId,sensorId,mysensorId" or __JSON__ in the form of an array of objects.
133
+
134
+
When detached, all sensors documents are deleted from the `sensors` collections of all different tenant index.
135
+
136
+
The `tenantId` property is set to `null` for all of them in the `device-manager` index
137
+
121
138
## Link to an asset
122
139
123
140
Devices can be linked to an asset by using the [device-manager/device:link](/kuzzle-iot-platform/device-manager/1/controllers/device/link) API action.
0 commit comments