Appearance
企学院修改学员
| 拥有此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 | 手机号码 |
| 否 | 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"]
}返回参数
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 错误码 |
| msg | string | 错误描述 |
| data | object | 返回值 |
| data.user_id | string | 用户id |
返回示例
{
"code": "0",
"msg": "OK",
"data":{
user_id: "u_wework_60debc0758022_uhI0istfKOgXflx9"
}
}