创建租户
POST
/api/v2/tenant
请求参数
Header 参数
Authorization
string
Token
示例值:
Bearer Token
x-authing-userpool-id
string
用户池 ID
示例值:
61b95d6c96d42670da568408
Body 参数application/json
name
string
租户名称
appIds
string
必需
logo
string
必需
description
string
租户描述
示例
{
"name": "string",
"appIds": "string",
"logo": "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/tenant' \
--header 'Authorization: Bearer Token' \
--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
必需
name
string
必需
logo
string
必需
description
string
必需
createdAt
string
必需
updatedAt
string
必需
id
string
必需
css
null
必需
ssoPageCustomizationSettings
null
必需
defaultLoginTab
string
必需
defaultRegisterTab
string
必需
passwordTabConfig
null
必需
loginTabs
array[string]
必需
registerTabs
array[string]
必需
extendsFields
null
必需
apps
array [object {10}]
必需
示例
{
"code": 200,
"message": "创建租户成功",
"data": {
"userPoolId": "61b95d6c96d42670da568408",
"name": "租户",
"logo": "http://xxx.xxx.xxx/resources/pic/14bcc5bc.png",
"description": "我是一个租户",
"createdAt": "2022-01-14T05:52:14.743Z",
"updatedAt": "2022-01-14T05:52:14.743Z",
"id": "61e10f8e3e3dd259c743a1ac",
"css": null,
"ssoPageCustomizationSettings": null,
"defaultLoginTab": "password",
"defaultRegisterTab": "email",
"passwordTabConfig": null,
"loginTabs": [
"phone-code",
"password"
],
"registerTabs": [
"email",
"phone"
],
"extendsFields": null,
"apps": [
{
"id": "61df925846bed781f5757166",
"name": "12",
"logo": "https://files.authing.co/authing-console/default-app-logo.png",
"domain": "12",
"description": null,
"createdAt": "2022-01-13T02:45:44.115Z",
"updatedAt": "2022-01-13T06:27:10.889Z",
"protocol": "oidc",
"isIntegrate": false,
"appType": "INDIVIDUAL"
}
]
}
}
修改于 2022-01-14 06:11:20