获取根节点
测试中GET
/api/v2/orgs/root-node/{orgId}请求参数
Path 参数
orgId
string
组织机构 ID
示例值:
rfwfsfw9ffsvbmfklmflnhi
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
必需
createdAt
string
必需
updatedAt
string
必需
userPoolId
string
必需
orgId
string
必需
name
string
必需
nameI18n
null
必需
description
string
必需
descriptionI18n
null
必需
order
null
必需
code
string
必需
leaderUserId
null
必需
__id
null
必需
__parentid
null
必需
__groupid
null
必需
path
array[string]
必需
root
boolean
必需
children
array[string]
必需
示例
{
"code": 200,
"message": "获取成功",
"data": {
"id": "61dd52c73e7d2733f13d80bb",
"createdAt": "2022-01-11T09:49:59.809Z",
"updatedAt": "2022-01-11T09:49:59.809Z",
"userPoolId": "61b95d6c96d42670da568408",
"orgId": "61dd52c7ad9825f8df7f067a",
"name": "fe-console",
"nameI18n": null,
"description": "werwerewr",
"descriptionI18n": null,
"order": null,
"code": "wefwerwr",
"leaderUserId": null,
"__id": null,
"__parentid": null,
"__groupid": null,
"path": [
"61dd52c73e7d2733f13d80bb"
],
"root": true,
"children": [
"61dd52d2d04072108e946432"
]
}
}
最后修改时间: 3 年前