修改指定网点启用状态
更新时间:2018-04-13 11:45:19 更新人员:叶洋

文档状态:完成 #91
测试接口
摘要
修改指定网点启用状态
-
接口基本信息
接口名称:更新指定网点的状态
请求方法:PUT
接口地址:netpoint/:net_id/status_<newstatus>
登录验证:是
-
路由参数
| 参数名 |
参数 |
数据类型 |
是否必须 |
示例值 |
说明 |
| net_id |
网点ID |
string |
是 |
|
|
| newstatus |
新状态名 |
string |
是 |
|
新状态名:on开启,off禁用 |
-
请求示例
请求例子:
apirq('netpoint/:net_id/status_<newstatus>', {
method: "put",
data: {
"net_id": "1e23852bfc7ec92a",
"newstatus": "off"
},
urlparams: [
"net_id",
"newstatus"
]
})
返回数据结果:
{
"code": 0,
"msg": "禁用资源成功!",
"time": "1523591084",
"data": ""
}