# 更新场景组
通过此接口更新场景组名称
# 接口说明
host | path | method | content-type |
---|---|---|---|
open.wecard.qq.com | /cgi-bin/device/guard/update-area | POST | application/json |
# 请求参数
{
"access_token": "EdxvGtXTmiYOhnwYpDJ1cz4CyGdgcy3I",
"area_list": [
{
"area_id": 2,
"area_name": "东1区"
},
{
"area_id": 3,
"area_name": "南1区"
}
]
}
参数 | 必填 | 类型 | 说明 |
---|---|---|---|
access_token | ✔️ | string | 接口请求凭证 |
area_id | ✔️ | int64 | 原场景组ID |
area_name | ✔️ | string | 更新后的场景组名称 |
# 响应参数
{
"errcode": 0,
"errmsg": "success",
"data": {
"suc_list": [2],
"fail_list": [3]
}
}
# data 中的参数说明
参数 | 类型 | 说明 |
---|---|---|
suc_list | int64[] | 更新成功列表 |
fail_list | int64[] | 更新失败列表 |