获取组织机构详情
测试中GET
/api/v2/orgs/{id}/detail请求参数
Path 参数
id
string
组织机构 ID
示例值:
string
Header 参数
Authorization
string
必需
用户池管理员 Token
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
61cc2c7bb686e2767125230d
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
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"
]
}
}
}
最后修改时间: 3 年前