PUT /admin/tenants/{id}/quota
更新指定租户的资源配额限制
租户服务 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
租户ID |
Request Body
Schema: dto.UpdateResourceQuotaRequest
| Field | Type | Required | Example | Constraints | Description |
max_api_requests |
integer |
No |
|
|
|
max_bandwidth |
integer |
No |
|
|
|
max_storage |
integer |
No |
|
|
|
max_users |
integer |
No |
|
|
|
Referenced Schemas
dto.TenantDetailResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.TenantResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.TenantResponse
租户详细信息
| Field | Type | Required | Example | Constraints | Description |
brand_custom_css |
string |
No |
|
|
|
brand_favicon_url |
string |
No |
|
|
|
brand_logo_url |
string |
No |
|
|
|
brand_primary_color |
string |
No |
|
|
|
created_at |
string |
No |
2026-01-01T00:00:00Z |
|
创建时间 |
display_name |
string |
No |
ACME Corporation |
|
显示名称 |
domain |
string |
No |
acme.example.com |
|
域名 |
id |
string |
No |
tnt_abc123 |
|
租户ID |
max_api_requests |
integer |
No |
10000 |
|
API请求上限 |
max_bandwidth |
integer |
No |
104857600 |
|
带宽上限(bytes/month) |
max_storage |
integer |
No |
1073741824 |
|
存储上限(bytes) |
max_users |
integer |
No |
100 |
|
用户上限 |
name |
string |
No |
acme-corp |
|
租户名称 |
owner_id |
string |
No |
usr_xyz789 |
|
所有者ID |
plan |
string |
No |
professional |
|
订阅计划 |
status |
string |
No |
active |
|
状态 |
updated_at |
string |
No |
2026-04-10T14:20:00Z |
|
更新时间 |
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|