update #
This action allow to migrates a list of assets and their attached devices to another tenant.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_/device-manager/:index/assets/_migrateTenant
Method: POSTOther protocols #
{
"controller": "device-manager/assets",
"action": "migrateTenant",
"index": "<index>",
"body": {
"assetsList": ["<assetId>"],
"newIndex": "<newIndex>"
"includeDevices": "<boolean>"
}
}Arguments #
index: Engine ID
Body properties #
assetsList: An array containing a list of asset ids to migratenewIndex: The id of the engine you want to migrate the assets toincludeDevices: Boolean indicating if the devices linked to the asset should be migrated with it.
Response #
{
"status": 200,
"error": null,
"controller": "device-manager/assets",
"action": "migrateTenant",
"requestId": "<unique request identifier>",
}