Modify Monitored Object

Last Updated on : 2023-06-15 06:03:19

Modify the details of a specified monitored object, including the name of the monitored object and a list of linked devices.

API address

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

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
monitor_object_idString falseThe ID of a specified monitored object.
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

PUT: /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"
    }
  ]
}

Error code

For more information, see error code.