Skip to content

企学院修改学员 ​

拥有此API的权限集
学员管理-增删改(限企学院)

请求方式及url ​

  • 请求方式:POST

  • 请求头:Content-Type:application/json

  • 接口地址:https://api.xiaoe-tech.com/xe.college.employee.update/1.0.0

  • 频率限制:10秒500次

    { "access_token": "xe_xxxx", "employee_id":"", "user_name":"", "is_auth":true, "entry_time":"2021-10-20", "password":"xxxx", "departments":["1"] } xe.college.employee.update/1.0.0

接口调试

请求参数
响应结果
暂无响应数据

请求参数 ​

参数名必选类型说明
access_token是string专属token
user_name是string用户名
employee_id是string账号
user_id是string用户id
password是string密码
departments是array部门id
is_auth是boolean是否授权,true授权,false不授权,默认false
update_password否boolean是否只根据employee_id修改对应的密码, 传递该参数为true时, 只校验employee_id, passwork两个参数, 忽略其他参数参数示例: false
alias否string别名
gender否string性别:1男,0女
mobile否string手机号码
email否string邮箱
position否string职位
entry_time否string入职时间
avatar否string头像

请求示例 ​

{
   "access_token": "xe_xxxx",
   "employee_id":"",
   "user_name":"",
   "is_auth":true,
   "entry_time":"2021-10-20",
   "password":"xxxx",
   "departments":["1"]
}

返回参数 ​

参数名类型说明
codeint错误码
msgstring错误描述
dataobject返回值
data.user_idstring用户id

返回示例 ​

{
   "code": "0",
   "msg": "OK",
   "data":{
       user_id: "u_wework_60debc0758022_uhI0istfKOgXflx9"
   }
}