PUT /admin/billing/plans/{id}
更新已有套餐定价方案的名称、描述、月/年价格、状态。支持部分更新,未传递的字段保持原值。
计费服务 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
套餐定价ID |
Request Body
Schema: dto.UpdatePlanRequest
| Field | Type | Required | Example | Constraints | Description |
audit_log_days |
integer |
No |
90 |
|
|
description |
string |
No |
适用于大型团队 |
|
|
max_api_requests |
integer |
No |
100000 |
|
|
max_bandwidth_gb |
integer |
No |
1024 |
|
|
max_storage_gb |
integer |
No |
100 |
|
|
max_users |
integer |
No |
100 |
|
|
mfa_enabled |
boolean |
No |
True |
|
|
monthly_price |
number |
No |
499 |
|
|
name |
string |
No |
专业版 |
|
|
sso_enabled |
boolean |
No |
True |
|
|
status |
string |
No |
active |
|
|
support_level |
string |
No |
priority |
|
|
yearly_price |
number |
No |
4999 |
|
|
Referenced Schemas
billing.FeatureGate
| Field | Type | Required | Example | Constraints | Description |
description |
string |
No |
|
|
功能描述 |
enabled |
boolean |
No |
|
|
当前租户是否启用 |
key |
string |
No |
|
|
"nhi", "mfa", "sso", "audit_export" |
name |
string |
No |
|
|
"Non-Human Identities" (展示名) |
dto.PlanPricingModelDetailResponse
dto.PlanPricingModelResponse
| Field | Type | Required | Example | Constraints | Description |
created_at |
string |
No |
2026-01-01T00:00:00Z |
|
|
currency |
string |
No |
CNY |
|
|
description |
string |
No |
适用于大型团队 |
|
|
feature_gates |
array of
See billing.FeatureGate |
No |
|
|
|
id |
string |
No |
ppm_001 |
|
|
monthly_price |
number |
No |
499 |
|
|
name |
string |
No |
专业版 |
|
|
plan |
string |
No |
pro |
|
|
status |
string |
No |
active |
|
|
updated_at |
string |
No |
2026-04-10T14:20:00Z |
|
|
yearly_price |
number |
No |
4999 |
|
|