Kuzzle
Documentation
2

mDetach #

Detach multiple devices from multiple tenants.


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/_/device-manager/device-manager/devices/_mDetach[?refresh=wait_for]
Method: PUT
Body:
Copied to clipboard!
{
    // Using JSON
    "sensorIds" ["test-id"],
    // Using CSV syntax
    "csv": "sensorId\ntest-id"
}

Other protocols #

Copied to clipboard!
{
    "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 attached
  • csv: a csv syntax compatible containing at least one header sensorId with his corresponding values
  • strict: a boolean value that indicate if the process should fail at first error

Arguments #

Optional: #

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

Response #

Copied to clipboard!
{
    "status": 200,
    "error": null,
    "index": "<index>",
    "controller": "device-manager/sensor",
    "action": "mDetach",
    "requestId": "<unique request identifier>",
    "result": {
        "errors": [],
        "successes": []
    }
}