企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
# 企学院获取组织架构 |拥有此API的权限集| |:----- | | 学员管理-查询组织学员信息(限企学院) | **请求方式及url** - 请求方式:`POST` - 请求头:`Content-Type:application/json` - 接口地址:`https://api.xiaoe-tech.com/xe.college.department.get/1.0.0` - 频率限制:`10秒3000次` {%     api      method="POST",     data={ "access_token":"xe_xxx", "fetch_child":0, "department_id":1 },     url="https://api-doc.xiaoe-tech.com/_agent/forward?url=https://api.xiaoe-tech.com/xe.college.department.get/1.0.0" %}  {% endapi %} **请求参数** |参数名 |必选 |类型 |说明 | |:---- |:--- |:----- |:----- | |access_token |是 |string | [专属token](./../get_access_token.md) | |department_id |是 |int |部门id,默认根部门是1 | |fetch_child |否 |int |是否递归子部门:0-否,1-是;不传默认为是 | **请求示例** ``` { "access_token":"xe_xxx", "fetch_child":0, "department_id":1 } ``` **返回参数** |参数名 |类型 |说明 | |:---- |:--- |:----- | |code |int | 错误码 | |msg |string | 错误描述 | |data |array | 返回数据 | 返回数据`data` |参数名 |类型 |说明 | |:---- |:--- |:----- | |department_id |string |部门id | |name |string |部门名称 | |parent_id |string |父id | |sort |int |排序 | |user_num |int | 部门的用户数 | |children |object |子部门的信息 | **返回示例** ``` { "code": 0, "msg": "OK", "data": [ { "department_id": "19", "name": "name", "parent_id": "1", "sort": 0, "user_num": -1, "children": [ { "department_id": "24", "name": "子部门3", "parent_id": "19", "sort": 0, "user_num": -1, "children": [] } ] } ] } ```