POSThttps://api.account.tencentid.com/openapi/v3/contacts/departments/batch_get名称 | 类型 | 必填 | 描述 |
Authorization | string | 是 | 值格式: Bearer {{access_token}} 支持鉴权类型: |
Content-Type | string | 是 | 固定值: application/json; charset=utf-8 |
名称 | 类型 | 必填 | 描述 |
department_ids | array<string> | 是 | 部门 id 列表 示例值:["13580**************31"] |
need_manager_union_ids | bool | 否 | 是否需要部门负责人 |
参数名称 | 类型 | 必选 | 描述 |
department_ids | array<string> | 是 | 部门 ID 列表 |
参数名称 | 类型 | 描述 |
departments | array<object> | 部门列表 |
trace_id | string | 唯一请求 ID |
POST https://api.account.tencentid.com/openapi/v3/contacts/departments/batch_getAuthorization: Bearer {access_token}Content-Type: application/json; charset=utf-8{ "department_ids": ["13580**************31"] }
{"code": 0,"msg": "ok","trace_id": "9c6c14433688fe931e711a890c39d147","data": {"departments": [{"department_id": "13580**************31","department_name": "张三集团","department_parent_id": "0","has_child": true}]}}
错误码 | 描述 |
201001 | 部门【%s】不存在 |
201017 | 企业部门查询失败,请重试 |
10002 | 资源不存在 |
文档反馈