导入组织机构
POST
/api/v2/orgs/import目前支持导入类型为 json 和 excel。参考:Authing JS SDK
请求参数
Header 参数
Authorization
string
Token
示例值:
Bearer sdfsdfsdfsdf
x-authing-userpool-id
string
用户池 ID
示例值:
61b95d6c96d42670da568408
Body 参数application/json
filetype
enum<string>
必需
枚举值:
jsonexcel
file
object
必需
name
string
必需
code
string
必需
children
array [object {3}]
必需
示例
{
"filetype": "json",
"file": {
"name": "string",
"code": "string",
"children": [
{
"code": "string",
"name": "string",
"description": "string"
}
]
}
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
userPoolId
string
必需
thirdPartyOrgId
null
必需
createdAt
string
必需
updatedAt
string
必需
id
string
必需
rootNodeId
string
必需
logo
null
必需
tenantId
null
必需
示例
{
"code": 200,
"message": "",
"data": {
"userPoolId": "61b95d6c96d42670da568408",
"thirdPartyOrgId": null,
"createdAt": "2022-01-12T09:00:46.843Z",
"updatedAt": "2022-01-12T09:00:46.925Z",
"id": "61de98be49267601119fb83a",
"rootNodeId": "61de98be25bd7eb96892f46c",
"logo": null,
"tenantId": null
}
}
最后修改时间: 3 年前