设置AI智见套餐服务开关
# setDeviceAiInsightSwitch:设置AI智见套餐服务开关
# 功能详情
设置AI智见套餐服务启用/暂停。设置暂停后,相关套餐功能将不生效。
注意:使用中的套餐设置为暂停,套餐到期时间不会暂停,仍然正常计服务时长。
# 请求地址
https://openapi.lechange.cn/openapi/setDeviceAiInsightSwitch
# 传入参数说明
| 参数名 | 参数类型 | 是否必填 | 默认值 | 合法值 | 参数说明 |
|---|---|---|---|---|---|
| token | String | 是 | 管理员accessToken | ||
| deviceId | String | 是 | 设备序列号 | ||
| channelId | String | 是 | 通道号 | ||
| useSwitch | String | 是 | 1:启用,0:暂停 | 待设置的套餐开关状态 |
# 样例输入
{
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"system":{
"ver":"1.0",
"appId":"lcdxxxxxxxxx",
"sign":"74bc756ebd53e9eef2836f8cf1730c10",
"time":1599031074,
"nonce":"8ec8a7bd1d1c95420de20d92422d457d"
},
"params":{
"token": "At_12345678901234567890123456789012",
"deviceId": "TESTQWERXXXX",
"channelId": "0",
"useSwitch": 1
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 返回data字段说明
无data数据返回
# 样例输出
{
"id":"d5c287b4-5b2f-4f03-baf5-8032c5c354af",
"result":{
"code":"0",
"msg":"操作成功"
}
}
1
2
3
4
5
6
7
2
3
4
5
6
7