- 文档首页
ArkClaw 企业版
ArkClaw 企业版
开发者指南
API 参考
UserManagement
GetDepartment - 获取部门详情
UserManagement
GetDepartment - 获取部门详情
GetDepartment - 获取部门详情
获取部门详情。
请求参数
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。 Action string 必选 示例值:GetDepartment
要执行的操作,取值:GetDepartment。
Version string 必选 示例值:2026-05-01
API的版本,取值:2026-05-01。
SpaceId string 必选 示例值:csi-yei8347ta8xmf5qd****
ArkClaw 空间 ID,可以在 ArkClaw 控制台“空间概览”页面的“基本信息”获取。
DepartmentId string 必选 示例值:2479e108-1a5c-4311-****
部门 ID。在ArkClaw控制台“用户管理 > 部门管理”页面获取。
返回参数
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。 CreateTime string 示例值:2026-01-01T00:00:00Z
部门的创建时间,时间格式为 RFC3339 UTC。
DepartmentId string 示例值:2479e108-1a5c-4311-****
部门 ID。
Description string 示例值:负责平台前端研发
部门描述。
DirectChildrenCount integer 示例值:3
直属子部门数量。
DirectMemberCount integer 示例值:10
部门直属成员数(仅统计当前部门,不包含子部门)。
ExternalId string 示例值:ext-123456
外部系统中的部门唯一标识 ID。
MemberCount integer 示例值:42
部门成员总数(统计当前部门及其所有子部门的成员)。
Name string 示例值:Frontend
部门名称。
NamePath string 示例值:/Engineering/Frontend
名称路径。
ParentDepartmentId string 示例值:root
上级部门 ID,返回 "root" 表示根部门。
Path string 示例值:/root/fdeeba37-51e7-****/2479e108-1a5c-4311-****
部门 ID 路径,表示该部门在部门树中的层级位置(由各级部门 ID 拼接,包含 root)。
SpaceId string 示例值:csi-yei8347ta8xmf5qd****
部门所属空间 ID。
UpdateTime string 示例值:2026-01-01T00:00:00Z
部门的更新时间,时间格式为 RFC3339 UTC。
请求示例
GET /?Action=GetDepartment&Version=2026-05-01&SpaceId=csi-yei8347ta8xmf5qd****&DepartmentId=2479e108-1a5c-4311-**** HTTP/1.1
Host: https://arkclaw.cn-beijing.volcengineapi.com
X-Date: 20260902T103658Z
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20260902/cn-beijing/arkclaw/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f
返回示例
"RequestId": "20260902183703051145****",
"Action": "GetDepartment",
"Version": "2026-05-01",
"CreateTime": "2026-01-01T00:00:00Z",
"DepartmentId": "2479e108-1a5c-4311-****",
"Description": "负责平台前端研发",
"DirectChildrenCount": 3,
"DirectMemberCount": 10,
"ExternalId": "ext-123456",
"NamePath": "/Engineering/Frontend",
"ParentDepartmentId": "root",
"Path": "/root/fdeeba37-51e7-****/2479e108-1a5c-4311-****",
"SpaceId": "csi-yei8347ta8xmf5qd****",
"UpdateTime": "2026-01-01T00:00:00Z"
错误码
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
最近更新时间:2026.09.08 14:33:47