说明:
将设备添加到分组中
请求地址:
https://linkapi.xf-yun.com/api/v1/groups/devices
协议支持:
POST
请求结构
{
"groupId": "xxx",
"groupName": "xxx",
"deviceList": [{
"productKey": "pKey1",
"deviceName": "dName1"
},
{
"productKey": "pKey2",
"deviceName": "dName2"
}
]
}
请求结构说明
参数名 | 必选 | 类型 | 长度 | 说明 |
---|---|---|---|---|
groupId | 是 | string | 无 | 分组Id |
groupName | 是 | string | 无 | 分组名 |
deviceList | 是 | object | 100 | 设备列表 |
productKey | 是 | string | 无 | 产品key |
deviceName | 是 | string | 无 | 设备名称 |
返回类型
JSON
返回结构
{
"requestId":"xxxxx",
"code":0,
"message":"成功",
"data":null
}
返回结构说明
参数名 | 类型 | 说明 |
---|---|---|
requestId | string | 请求id,全局唯一 |
code | int | 返回码 |
message | string | 返回信息 |
data | object | 返回数据 |