0

批量新增量设备接口的batchdevices是什么意思?

2018-01-09 提问

1 个回答

0

batchdevices是批量新增设备的标示。
代码样例如下:
post http://{{ip}}:28008/api/cos/v1/batchdevices?apikey={{apikey}}
Content-Type application/json
{

"deviceinfo": {
   
    "productno": "20",
    "modelcode": "master_modelcode",
    "devicedetails": [
    {
        "serialnum": "ZTE_water_04",
        "authority": "private"
    },
    {
        "serialnum": "ZTE_water_05",
        "authority": "public"
        
    }

    ]
}

}
其中{{ip}}表示平台地址,{{apikey}}表示开发者唯一标识。

推广链接