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_tokenstring专属token
user_namestring用户名
employee_idstring账号
user_idstring用户id
passwordstring密码
departmentsarray部门id
is_authboolean是否授权,true授权,false不授权,默认false
update_passwordboolean是否只根据employee_id修改对应的密码, 传递该参数为true时, 只校验employee_id, passwork两个参数, 忽略其他参数参数示例: false
aliasstring别名
genderstring性别:1男,0女
mobilestring手机号码
emailstring邮箱
positionstring职位
entry_timestring入职时间
avatarstring头像

请求示例

{
   "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"
   }
}