仟寻用户中心
所有文章
系统应用
MoTalk
公司介绍
获取组织架构树
最后更新于 2023/09/07   阅读数 72

获取组织架构树

获取本公司指定账号的组织架构树(主账号可见所有)

Get Organizational Tree

Headers

Key

Required

Type

Description

token

Yes

string

令牌

hr_id

Yes

int

hr id

Response data

Key

Describe

id

组织/团队/部门id

name

组织/团队/部门名称

parent_id

上级id

type

类型

type_label

类型名称

children

下级组织/团队/部门

Response

{
    "code": 0,
    "message": "",
    "data": [
        {
            "children": [
                {
                    "children": [],
                    "company_id": 39978,
                    "name": "test team b update",
                    "parent_id": 188373785,
                    "id": 188373773,
                    "type": 2,
                    "type_label": "机构"
                }
            ],
            "company_id": 39978,
            "name": "Finance",
            "parent_id": 0,
            "id": 188373785,
            "type": 2,
            "type_label": "部门"
        }
    ]
}

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
plaintext
本篇目录

获取组织架构树

Get Organizational Tree

Response data