文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
修改指定车辆的启用状态
更新时间:2018-04-20 16:49:32   更新人员:叶洋   文档状态:完成 #205    测试接口
摘要
修改指定车辆的状态
  1. 接口基本信息
    接口名称:启用/禁用一个车辆
    请求方法:PUT
    接口地址:truck/:truck_id/status_<newstatus>
    登录验证:是
  2. 路由参数
    参数名 参数 数据类型 是否必须 示例值 说明
    truck_id 车辆序号 string 4 车辆序号
    newstatus 新状态 string off off:status是1 禁用
    on:status是0 启用
  3. 请求示例
    请求例子:
     
    apirq('truck/:truck_id/status_<newstatus>', {
        method: "put",
        data: {
            "truck_id": "5ad9a07e01010000",
            "newstatus": "off"
        },
        urlparams: [
            "truck_id",
            "newstatus"
        ]
    }) 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "禁用资源成功!",
        "time": "1524213977",
        "data": ""
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员