导入组织机构
POST
/api/v2/orgs/import
请求参数
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"
}
]
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://core.authing.cn/api/v2/orgs/import' \
--header 'Authorization: Bearer sdfsdfsdfsdf' \
--header 'x-authing-userpool-id: 61b95d6c96d42670da568408' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
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
}
}
修改于 2022-01-12 09:10:15