Add Monitored Object

Last Updated on : 2023-06-21 07:13:11download

Add a monitored object, including the name, code, and picture.

API address

POST: /v1.0/iot-03/si/monitor-object

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
monitor_object_typeString trueThe type of a specified monitored object.
monitor_object_nameString trueThe name of a specified monitored object.
remarkString falseThe remarks.
device_listList falseA list of linked devices.
picture_listList falseThe list of pictures of monitored objects.

Description of picture_list

Parameter nameTypeINRequiredDescription
attachment_nameString falseThe file name.
attachment_valueString falseThe cloud_key of a specified file.
thumbnail_attachment_valueString falseThe cloud_key of a specified file thumbnail.

Return parameter

Parameter nameTypeDescription
resultBooleanIndicates whether the operation is successful.

Request example

POST: /v1.0/iot-03/si/monitor-object
{
  "monitorObjectId": "197***",
  "monitorObjectType": "energy_collect",
  "monitorObjectName": "Vibration Monitoring Test",
  "remark": "Remarks of vibration monitoring test",
  "deviceList": [
    "vdevo***"
  ],
  "pictureList": [
    {
      "attachmentName": "****.JPG",
      "attachmentValue": "is-product/other/20211126/20211126**.JPG",
      "thumbnailAttachmentValue": "is-product/other/20211126/20211126**.JPG"
    }
  ]

Return example

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

Error code

For more information, see error code.