Skip to content

企学院获取部门信息

拥有此API的权限集
学员管理-查询(限企学院)

请求方式及url

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

接口调试

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

请求参数

参数名必选类型说明
access_tokenstring专属token
department_idint部门id

请求示例

{
   "access_token":"xe_xxx",
   "department_id":1
}

返回参数

参数名类型说明
codeint错误码
msgstring错误描述
dataobject返回数据
返回数据data
参数名类型说明
department_idstring所属部门id
idstringid
namestring部门名称
parent_idstring父id
parent_namestring父部门名称
sortint排序
total_employeesint部门中的员工数量
typestring部门类型

返回示例

{
   "code": 0,
   "msg": "OK",
   "data": {
       "name": "name",
       "department_id": "1",
       "parent_id": "1",
       "sort": 100000000,
       "parent_name": "name",
       "totol_employees": 63,
       "id": "1",
       "type": "group"
   }
}