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

PATCH /admin/billing/plans/{id}/feature-gates

更新指定套餐的 FeatureGates(功能开关)列表,支持按 key 开启/关闭功能。自动同步 MFA 和 SSO 布尔字段到套餐特性中。

计费服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 套餐ID (free/basic/pro/enterprise/platform)

Request Body

Accepts an empty JSON object {}

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