Transfer Device

Last Updated on : 2023-06-15 05:50:01

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 name Type IN Required Description
device_id String uri true The device ID.

Description of body

Parameter name Type IN Required Description
source_asset_id String false The ID of the source asset.
target_asset_id String false The ID of the target asset.

Return parameter

Parameter name Type Description
result Boolean Indicates 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.