Link Inspection Devices under Asset

Last Updated on : 2023-06-15 05:55:00

After an inspection device is bound with a specified asset, link the inspection device with the inspection capability.

API address

POST: /v1.0/iot-03/store-inspection/assets/{asset_id}/actions/device-assign

Request parameter

Parameter name Type IN Required Description
asset_id String uri true The ID of a specified asset.

Description of body

Parameter name Type IN Required Description
device_id String true The device ID.
device_type Integer true The type of a specified inspection device. Set the value to 1 to represent AI inspection.

Return parameter

Parameter name Type Description
result Boolean Indicates whether the operation is successful.

Request example

POST: /v1.0/iot-03/store-inspection/assets/142324705862568****/actions/device-assign
{ "device_id": "vdevo16281640933****", "device_type": 1 }

Return example

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

Error code

For more information, see error code.