创建节点
POST
/api/v2/orgs/{orgId}/nodes请求参数
Path 参数
orgId
string
组织 ID
示例值:
isdjfojsdfoijsdoifjsdoif
Header 参数
Authorization
string
Token
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
61b95d6c96d42670da568408
Body 参数application/json
parentNodeId
string
父节点 ID
orgId
string
组织 ID
name
string
组织名称
nameI18n
string
可选
JSON.stringify 后的字符串
description
string
描述
descriptionI18n
string
可选
JSON.stringify 后的字符串
order
integer
排序位置
code
string
可选
code 不能以 sys: 开头
示例
{
"parentNodeId": "string",
"orgId": "string",
"name": "string",
"nameI18n": "string",
"description": "string",
"descriptionI18n": "string",
"order": 0,
"code": "string"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
message
string
必需
code
integer
必需
data
object
必需
id
string
必需
userPoolId
string
必需
orgId
string
必需
name
string
必需
nameI18n
string
必需
description
string
必需
descriptionI18n
string
必需
order
integer
必需
code
string
必需
createdAt
string
必需
updatedAt
string
必需
leaderUserId
null
必需
__id
null
必需
__parentid
null
必需
__groupid
null
必需
示例
{
"message": "创建成功",
"code": 200,
"data": {
"id": "61de8fcf0ce836d4b8d1f866",
"userPoolId": "61b95d6c96d42670da568408",
"orgId": "61de89e1ef299444ea9a1b85",
"name": "Apifox创建节点",
"nameI18n": "sjfojewf",
"description": "sjfojefo",
"descriptionI18n": "sdfwefwefwef",
"order": 1,
"code": "nodecode",
"createdAt": "2022-01-12T08:22:39.136Z",
"updatedAt": "2022-01-12T08:22:39.136Z",
"leaderUserId": null,
"__id": null,
"__parentid": null,
"__groupid": null
}
}
最后修改时间: 3 年前