Create Tenant

  • 创建租户

Request

  • Path: api/blade-system/tenant/create
  • Method: POST
  • Header:
    • Authorization: Basic c2FiZXI6c2FiZXJfc2VjcmV0
    • Blade-Auth: access_token
  • Request body example:
1
2
3
4
5
6
7
8
{
"id": "系统编号,新增时为空,修改时不能为空",
"tenantName": "租户全名",
"abbreviation": "租户简称",
"linkman": "联系人",
"contactNumber": "联系电话",
"address": "客户地址"
}

Response

  • Response body example:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
"code": 200,
"success": true,
"data": {
"id": "系统编号",
"tenantId": "租户编号",
"tenantName": "租户全名",
"parentTenantId": "父级租户编号",
"domain": "二级域名",
"linkman": "联系人",
"contactNumber": "联系电话",
"address": "客户地址",
"abbreviation": "租户简称",
"adminUserName": "默认访问用户名",
"adminPassword": "默认访问密码"
},
"msg": "操作成功"
}