{
"id": 0,
"name": "string",
"code": "string",
"transProtocol": "string",
"desc": "string",
"endpoints": [
"string"
],
"etcdKey": "string",
"configFields": [
{
"id": 0,
"group": "string",
"key": "string",
"label": "string",
"isRequired": true,
"sort": 0
}
],
"configInfos": [
{
"id": 0,
"config": {},
"desc": "string"
}
]
}curl --location --request POST '/api/v1/things/protocol/info/update' \
--header 'iThings-token: {{iThings-token}}' \
--header 'iThings-project-id: 1786838173980422144' \
--header 'iThings-app-code: {{iThings-app-code}}' \
--header 'iThings-user-role: 1' \
--header 'Accept-Language: en' \
--header 'iThings-tenant-code;' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 0,
"name": "string",
"code": "string",
"transProtocol": "string",
"desc": "string",
"endpoints": [
"string"
],
"etcdKey": "string",
"configFields": [
{
"id": 0,
"group": "string",
"key": "string",
"label": "string",
"isRequired": true,
"sort": 0
}
],
"configInfos": [
{
"id": 0,
"config": {},
"desc": "string"
}
]
}'{
"code": 0,
"msg": "success"
}
扫码加入 iThings微信交流群

扫码加入交流群