**请求URL:** - ` http://xx.com/api/Home/newEditEquipment ` **请求方式:** - POST **请求类型:** - Content-Type:application/json **参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | |id |否 |string |设备标识,没有携带设备标识则新增,否则即为修改 | |name |是 |string | 设备名称 | |villageId |是 |string | 一级组织标识 | |ipaddress |是 |string |ip地址 | |type |否 |string |设备类型| |deviceKey |否 |string | 设备序列号 (type=9/10/11 序列号为必填) | |notes |否 |string | 设备注释 | |参数名|值|说明| |:---- |:---|:----- |----- | |type |1 |人脸识别设备(RK) | |type |9 |5寸人脸识别设备(HS) | |type |10 |8寸人脸识别设备(HS) | |type |11 |7寸人脸识别设备(HS) | **请求示例** ``` { "id":"cfd77a5345c45743534ea02b6", "name": "修改设备名称", "villageId":"f356443242346ea9a72e315", "ipaddress" : "188.134.0.33" } ``` **返回示例** ``` { "result": { "retcode": 0, "total": 0, "data": [ { "id": "cfd77a5345c45743534ea02b6", "name": "修改设备名称", "villageId": "f356443242346ea9a72e315", "villageName": "测试文档" } ], "message": "成功", "otherobj": null } } ``` **返回参数data说明** |参数名|类型|说明| |:----- |:-----|----- | |id |string |设备标识 | |name |string |设备名称 | |villageId |string |一级组织标识 | |villageName |string |一级组织名称 |