A AuthMS API Wiki API Reference iam.tianv.com →

PUT /admin/billing/plans/{id}

更新已有套餐定价方案的名称、描述、月/年价格、状态。支持部分更新,未传递的字段保持原值。

计费服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 套餐定价ID

Request Body

Schema: dto.UpdatePlanRequest

FieldTypeRequiredExampleConstraintsDescription
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

Responses

StatusDescriptionSchema
200套餐更新成功dto.PlanPricingModelDetailResponse
400请求参数错误object
401未授权object
403无权限object
404套餐不存在object
500服务器内部错误object

Referenced Schemas

billing.FeatureGate

FieldTypeRequiredExampleConstraintsDescription
description string No 功能描述
enabled boolean No 当前租户是否启用
key string No "nhi", "mfa", "sso", "audit_export"
name string No "Non-Human Identities" (展示名)

dto.PlanPricingModelDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.PlanPricingModelResponse No
message string No
timestamp string No

dto.PlanPricingModelResponse

FieldTypeRequiredExampleConstraintsDescription
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