获取组织机构详情
测试中
GET
/api/v2/orgs/{id}/detail
请求参数
Path 参数
id
string
组织机构 ID
示例值:
string
Header 参数
Authorization
string
必需
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
61cc2c7bb686e2767125230d
Body 参数application/x-www-form-urlencoded
object {0}
示例代码
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/string/detail' \
--header 'Authorization: Bearer token' \
--header 'x-authing-userpool-id: 61cc2c7bb686e2767125230d'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
id
string
必需
nodes
array [object {19}]
必需
rootNode
object
必需
示例
{
"code": 200,
"message": "获取成功",
"data": {
"id": "61d6979f7457fcb1b9d24572",
"nodes": [
{
"id": "61d6979fc15b41814f80e2ed",
"createdAt": "2022-01-06T07:17:51.172Z",
"updatedAt": "2022-01-06T07:53:12.703Z",
"userPoolId": "61b95d6c96d42670da568408",
"orgId": "61d6979f7457fcb1b9d24572",
"name": "组织机构-1",
"nameI18n": null,
"description": "这是组织机构-1",
"descriptionI18n": null,
"order": null,
"code": "112233",
"leaderUserId": null,
"__id": null,
"__parentid": null,
"__groupid": null,
"children": [
"61d697bbddb85f749e19830d"
],
"depth": 0,
"root": true,
"path": [
"61d6979fc15b41814f80e2ed"
]
},
{
"id": "61d697bbddb85f749e19830d",
"createdAt": "2022-01-06T07:18:19.491Z",
"updatedAt": "2022-01-06T07:18:19.491Z",
"userPoolId": "61b95d6c96d42670da568408",
"orgId": "61d6979f7457fcb1b9d24572",
"name": "organization-1-1",
"nameI18n": null,
"description": null,
"descriptionI18n": null,
"order": null,
"code": "6437",
"leaderUserId": null,
"__id": null,
"__parentid": null,
"__groupid": null,
"children": [
"61d698016534289b58624f11"
],
"depth": 1,
"root": false,
"path": [
"61d6979fc15b41814f80e2ed",
"61d697bbddb85f749e19830d"
]
},
{
"id": "61d698016534289b58624f11",
"createdAt": "2022-01-06T07:19:29.713Z",
"updatedAt": "2022-01-06T07:19:29.713Z",
"userPoolId": "61b95d6c96d42670da568408",
"orgId": "61d6979f7457fcb1b9d24572",
"name": "organization-1-1-1",
"nameI18n": null,
"description": null,
"descriptionI18n": null,
"order": null,
"code": "7628",
"leaderUserId": null,
"__id": null,
"__parentid": null,
"__groupid": null,
"children": [],
"depth": 2,
"root": false,
"path": [
"61d6979fc15b41814f80e2ed",
"61d697bbddb85f749e19830d",
"61d698016534289b58624f11"
]
}
],
"rootNode": {
"id": "61d6979fc15b41814f80e2ed",
"createdAt": "2022-01-06T07:17:51.172Z",
"updatedAt": "2022-01-06T07:53:12.703Z",
"userPoolId": "61b95d6c96d42670da568408",
"orgId": "61d6979f7457fcb1b9d24572",
"name": "组织机构-1",
"nameI18n": null,
"description": "这是组织机构-1",
"descriptionI18n": null,
"order": null,
"code": "112233",
"leaderUserId": null,
"__id": null,
"__parentid": null,
"__groupid": null,
"children": [
"61d697bbddb85f749e19830d"
],
"depth": 0,
"root": true,
"path": [
"61d6979fc15b41814f80e2ed"
]
}
}
}
修改于 2022-01-24 05:43:49