mDetach #
Detach multiple devices from multiple tenants.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_/device-manager/device-manager/devices/_mDetach[?refresh=wait_for]
Method: PUT
Body:
{
// Using JSON
"sensorIds" ["test-id"],
// Using CSV syntax
"csv": "sensorId\ntest-id"
}
Other protocols #
{
"controller": "device-manager/sensor",
"action": "mAttachTenant",
"body": {
// Using JSON
"sensorIds" ["test-id"],
// Using CSV syntax
"csv": "sensorId\ntest-id"
}
}
Body properties #
Body properties, must contain at least one of
sensorIds
: an array of string containing identifiers of a sensor already attachedcsv
: a csv syntax compatible containing at least one headersensorId
with his corresponding valuesstrict
: a boolean value that indicate if the process should fail at first error
Arguments #
Optional: #
refresh
: if set towait_for
, Kuzzle will not respond until the documents are indexed
Response #
{
"status": 200,
"error": null,
"index": "<index>",
"controller": "device-manager/sensor",
"action": "mDetach",
"requestId": "<unique request identifier>",
"result": {
"errors": [],
"successes": []
}
}