修改指定专线的运行状态
更新时间:2018-04-18 17:33:33 更新人员:叶洋

文档状态:完成 #184
测试接口
摘要
修改指定专线的运行状态
-
接口基本信息
接口名称:修改指定专线的运行状态
请求方法:PUT
接口地址:line/specialline/:line_id/run_status_<newstatus>
登录验证:是
-
路由参数
| 参数名 |
参数 |
数据类型 |
是否必须 |
示例值 |
说明 |
| line_id |
专线id |
string |
是 |
|
|
| newstatus |
新状态 |
string |
是 |
|
启用:on,禁用:off |
-
请求示例
请求例子:
apirq('line/specialline/:line_id/run_status_<newstatus>', {
method: "put",
data: {
"line_id": "a685ede5450a6836",
"newstatus": "on"
},
urlparams: [
"line_id",
"newstatus"
]
})
返回数据结果:
{
"code": 0,
"msg": "启用专线运行成功!",
"time": "1524043983",
"data": ""
}