获取企业部门列表
GET
https://open.teambition.com/api/org/departments
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.teambition.com/api/org/departments?orgId' \
--header 'Authorization: Bearer <appAccessToken>' \
--header 'X-Tenant-Id: 50c32af35a87e6b2...' \
--header 'X-Tenant-Type: organization'
响应示例响应示例
{
"code": 200,
"errorMessage": "",
"nextPageToken": "",
"result": [
{
"orgId": "65d9d50cc8b",
"deptId": "a65d9d50",
"name": "xx部",
"description": "xxxx",
"parentId": "8fb96f3e3",
"created": "2019-01-01 00:00:00",
"leaderId": "908c4ab0",
"ancestorIds": [
"5eec74fc956358ee04ddafdf"
]
}
]
}
请求参数
Query 参数
orgId
string
企业 ID
pageSize
string
可选
pageToken
string
可选
Header 参数
Content-Type
string
可选
示例值:
application/json
Authorization
string
可选
默认值:
{{Authorization}}
X-Tenant-Id
string
企业 ID
默认值:
{{X-Tenant-Id}}
X-Tenant-Type
string
可选
默认值:
organization
返回响应
修改于 2023-01-06 07:14:11