创建组织机构
POST
/api/v2/orgs请求参数
Header 参数
Authorization
string
Token
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
61b95d6c96d42670da568408
Body 参数application/json
name
string
必需
description
string
可选
code
string
组织机构标识
tenantId
string
可选
示例
{
"name": "string",
"description": "string",
"code": "string",
"tenantId": "string"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
userPoolId
string
必需
createdAt
string
必需
updatedAt
string
必需
id
string
必需
rootNodeId
string
必需
logo
null
必需
thirdPartyOrgId
null
必需
tenantId
null
必需
rootNode
object
必需
示例
{
"code": 200,
"message": "创建成功",
"data": {
"userPoolId": "61b95d6c96d42670da568408",
"createdAt": "2022-01-12T07:57:21.087Z",
"updatedAt": "2022-01-12T07:57:21.114Z",
"id": "61de89e1ef299444ea9a1b85",
"rootNodeId": "61de89e11bb06796139b5de1",
"logo": null,
"thirdPartyOrgId": null,
"tenantId": null,
"rootNode": {
"id": "61de89e11bb06796139b5de1",
"createdAt": "2022-01-12T07:57:21.101Z",
"updatedAt": "2022-01-12T07:57:21.101Z",
"userPoolId": "61b95d6c96d42670da568408",
"orgId": "61de89e1ef299444ea9a1b85",
"name": "Apifox 创建的组织机构",
"nameI18n": null,
"description": "this is description",
"descriptionI18n": null,
"order": null,
"code": "ApifoxCode",
"leaderUserId": null,
"__id": null,
"__parentid": null,
"__groupid": null
}
}
}
最后修改时间: 3 年前