Skip to content

获取关联组织下的部门列表

适用版本>=v7.0.2412b.20241226

接口说明:获取关联组织下的部门列表

请求说明

请求地址配置域名+/openapi+/v7/partners/{partner_id}/depts/{dept_id}/children
请求方法GET
签名方式KSO-1(配置域名+/openapi不参与签名)
权限要求查询关联组织(用户授权)kso.contact_partner.read

请求头(Header)

Header参数类型是否必填说明
X-Kso-DatestringRFC1123 格式的日期,例: Wed, 23 Jan 2013 06:43:08 GMT
X-Kso-AuthorizationstringKSO-1 签名值,详见《签名方法》
Authorizationstring授权凭证,格式为:Bearer {access_token}

路径参数(Path)

名称类型是否必填说明
partner_idstring关联组织id
dept_idstring部门id

查询参数(Query)

名称参数类型是否必填说明
page_sizeint64分页大小,默认为:10,最小值:1,最大值:50
page_tokenint64分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回next_page_token作为新的page_token,下次遍历可采用该page_token获取查询结果;当查询结果中next_page_token为空或无该返回值时,代表无下一页。

响应体(Response)

名称类型说明
codeint错误码
detailstring详细信息
msgstring状态信息
dataobject返回信息体
deptsobject[]部门信息
company_idstring公司id
dept_abs_pathstring部门绝对路径
dept_idstring部门id
dept_namestring部门名称
next_page_tokenstring下一页分页标记,<= 1024 characters;当查询结果中next_page_token为空或无该返回值时,代表无下一页

响应体示例

json
{
  "data": {
    "depts": [
      {
        "company_id": "string",
        "dept_abs_path": "string",
        "dept_id": "string",
        "dept_name": "string"
      }
    ],
    "next_page_token": "string"
  },
  "code": 0,
  "detail": "string",
  "msg": "string"
}