修改指定账户的启用状态
更新时间:2018-04-25 17:59:03 更新人员:叶洋

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