获取子节点列表
测试中
GET
/api/v2/orgs/children
请求参数
Query 参数
nodeId
string
节点 ID
示例值:
ftyftyf76f82fu3g87fg3
orgId
string
组织机构 ID
示例值:
envh98h3934h30h43iueiuv
Header 参数
Authorization
string
必需
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
61cc2c7bb686e2767125230d
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://core.authing.cn/api/v2/orgs/children?nodeId=ftyftyf76f82fu3g87fg3' \
--header 'Authorization: Bearer token' \
--header 'x-authing-userpool-id: 61cc2c7bb686e2767125230d'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
array [object {19}]
必需
depth
integer
可选
id
string
可选
createdAt
string
可选
updatedAt
string
可选
userPoolId
string
可选
orgId
string
可选
name
string
可选
nameI18n
null
可选
description
null
可选
descriptionI18n
null
可选
order
null
可选
code
null
可选
leaderUserId
null
可选
__id
null
可选
__parentid
null
可选
__groupid
null
可选
path
array[string]
可选
root
boolean
可选
children
array[string]
可选
示例
{
"code": 200,
"message": "获取成功",
"data": [
{
"depth": 1,
"id": "61c2bdc56c95dcb2317dac77",
"createdAt": "2021-12-22T05:55:17.627Z",
"updatedAt": "2021-12-22T05:55:17.627Z",
"userPoolId": "59f86b4832eb28071bdd9214",
"orgId": "613ef19b62aebcf24c423ff4",
"name": "elmvetmvbt",
"nameI18n": null,
"description": null,
"descriptionI18n": null,
"order": null,
"code": null,
"leaderUserId": null,
"__id": null,
"__parentid": null,
"__groupid": null,
"path": [
"613ef19b677706513bb4bd40",
"61c2bdc56c95dcb2317dac77"
],
"root": false,
"children": [
"61c2bf73f109d04269dc5043"
]
}
]
}
修改于 2022-01-24 05:53:29