Skip to content

企学院添加学员 ​

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

请求方式及url ​

  • 请求方式:POST
  • 请求头:Content-Type:application/json
  • 接口地址:https://api.xiaoe-tech.com/xe.college.employee.add/1.0.0
  • 频率限制:10秒500次

接口调试

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

请求参数 ​

参数名必选类型说明
access_token是string专属token
user_name是string用户名
employee_id是string账号
password是string密码
departments是array部门id
is_auth是boolean是否授权,true授权,false不授权,默认false
alias否string别名
gender否string性别:1男,0女
mobile否string手机号码
email否string邮箱
position否string职位
entry_time否string入职时间
avatar否string头像

请求示例 ​

{
   "access_token" : "xe_xxxx",
   "user_name":"",
   "employee_id":"",
   "is_auth":true,
   "departments":["1"],
   "password":"xxx"
}

返回参数 ​

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

返回示例 ​

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