ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 企学院添加学员 |拥有此API的权限集| |:----- | | 学员管理-组织学员操作(限企学院) | **请求方式及url** - 请求方式:`POST` - 请求头:`Content-Type:application/json` - 接口地址:`https://api.xiaoe-tech.com/xe.college.employee.add/1.0.0` - 频率限制:`10秒500次` {%     api      method="POST",     data={ "access_token" : "xe_xxxx", "user_name":"", "employee_id":"", "is_auth":true, "departments":["1"], "password":"xxx" },     url="https://api-doc.xiaoe-tech.com/_agent/forward?url=https://api.xiaoe-tech.com/xe.college.employee.add/1.0.0" %}  {% endapi %} **请求参数** |参数名|必选|类型|说明| |:---- |:--- |:----- |:----- | |access_token |是 |string | [专属token](./../get_access_token.md) | |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 |邮箱 | |id_card |否 |string |身份证 | |position |否 |string |职位 | |entry_time |否 |string |入职时间 | |avatar |否 |string |头像 | **请求示例** ``` { "access_token" : "xe_xxxx", "user_name":"", "employee_id":"", "is_auth":true, "departments":["1"], "password":"xxx" } ``` **返回参数** |参数名|类型|说明| |:---- |:---|:----- | |code |int | 错误码 | |msg |string | 错误描述 | |data |object | 返回值 | | data.user_id |string | 用户id | **返回示例** ``` { "code": "0", "msg": "OK", "data":{ user_id: "u_wework_xxxx" } } ```