attachTenant #
Attach a device to a tenant.
The device document will be duplicated inside the tenant devices
collection.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_/device-manager/:index/devices/:_id/_attach[?refresh=wait_for]
Method: PUT
Other protocols #
{
"index": "<index>",
"controller": "device-manager/device",
"action": "attachTenant",
"_id": "<deviceId>"
}
Kourou #
kourou device-manager/device:attachTenant <index> --id <deviceId>
Arguments #
index
: Tenant index name
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/device",
"action": "attachTenant",
"requestId": "<unique request identifier>",
"result": {}
}
Edit this page on Github(opens new window)