English
English
简体中文
Contact Us
Register
Log In

Link Inspection Devices

Last Updated on : 2021-12-08 02:24:34download

After an inspection device is linked with a specified asset, link the inspection device with specified inspection capabilities.

API address

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

Request parameter

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

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.
  • 2: video inspection.

Return parameter

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

Request example

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

Return example

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

Error code

For more information, see error code.