Transfer Device

Last Updated on : 2023-06-20 15:22:51download

Transfer the devices from the source asset to the target asset.

API address

POST: /v1.0/iot-03/assets/devices/{device_id}/actions/transfer

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe device ID.

Description of body

Parameter nameTypeINRequiredDescription
source_asset_idString falseThe ID of the source asset.
target_asset_idString falseThe ID of the target asset.

Return parameter

Parameter nameTypeDescription
resultBooleanIndicates whether the operation is successful.

Request example

POST: /v1.0/iot-03/assets/devices/tuyadailydevazhoul088/actions/transfer
{
  "source_asset_id": "1388049912456900608",
  "target_asset_id": "1394196189162807296"
}

Return example

{
    "result": true,
    "t": 1624069713536,
    "success": true
}

Error code

For more information, see error code.