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: POST

Other 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 migrate
  • newIndex: The id of the engine you want to migrate the assets to
  • includeDevices: 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>",
}