1. 修改授区

授区设置接口:

PUT:http://api.xdua.com/usrz/{usrz_id}

注: 只有root用户拥有权限

字段名 位置 类型 字段说明 举例 可选
apiv head string API版本,默认是1.0.0 1.0.0 可选
Authorization head string 客户端保存的鉴权token 32位md5码 必选
usrz_id path string 谁设置的,一般都是自己设置的,值同uid 必选
expire body int 多少秒后过期,最小是60秒 可选
enabled body String 0:关闭 1:打开 可选
note body String 备注 64字节限制 可选

返回数据

成功返回

{
    "error": 0,
    "reason": "Success",
    "result": {},
}

失败返回

{    
    "error": >0,
    "reason": "失败原因",
    "result": {"失败供调试的东西"},
}

results matching ""

    No results matching ""