简要描述:
为网关设备添加子设备
请求URL:
https://linkapi.xf-yun.com/api/v1/topo
请求方式:
POST
请求参数
{
"productKey": "xxxx",
"deviceName": "xxxx",
"subDevices": [
{
"productKey": "xxxx",
"deviceName": "xxxx"
}
]
}
请求参数说明:
参数名 | 必选 | 类型 | 长度 | 说明 |
---|---|---|---|---|
productKey | 是 | string | 100 | 产品名称 |
deviceName | 是 | string | 无 | 设备名称 |
subDevices | 是 | array | 无 | 子设备数组 ,包含子设备产品名称以及设备名称 |
返回参数
{
"code": 0,
"message": "success",
"requestId": "iot00010002@dx17520e6c1380000802"
}
返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
requestId | string | 请求id,全局唯一 |
code | int | 错误码 |
message | string | 错误信息 |