Skip to main content
POST
/
api
/
var
/
sensor
/
modify
编辑传感量
curl --request POST \
  --url https://api.example.com/api/var/sensor/modify \
  --header 'Authentication: <authentication>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "fab90ae8410e43cd8fc3fe7e11b90442",
  "key": "c",
  "label": "变c",
  "type": "object",
  "data": {
    "cc": {
      "tmp": 22
    }
  },
  "index": 1,
  "config": {
    "calc": {
      "base": 0
    },
    "param": {
      "count": 2
    },
    "type": "int32",
    "unit": "Nm³"
  },
  "param": {
    "tags": [
      "韭菜",
      "馅饼"
    ]
  }
}
'
{}

Headers

Authentication
string
required

Body

application/json
key
string
required
id
string
required
label
string
type
string
config
object
param
object
data
object
index
integer
confDel
string

仅用作变量配置删除项,如key.child1.child11

entire
boolean

覆盖更新时true,如变量配置‘高级模式’

Response

200 - application/json

The response is of type object.