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

PUT /admin/tenants/{id}/minors-protection

更新指定租户的未成年人保护配置

租户服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 租户ID

Request Body

Schema: dto.UpdateMinorsProtectionConfigRequest

FieldTypeRequiredExampleConstraintsDescription
child_default_max_privacy boolean No
content_filter_enabled boolean No
daily_usage_limit_min integer No
digital_consent_age integer No
live_stream_blocked_under_16 boolean No
minor_data_retention_days integer No
minors_age_threshold integer No
monthly_spend_limit integer No
night_mode_enabled boolean No
night_mode_end string No
night_mode_start string No

Responses

StatusDescriptionSchema
200更新成功dto.MinorsProtectionConfigResponse
400请求参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证gitee_com_linmes_authms_base_dto.SimpleResponse
403权限不足gitee_com_linmes_authms_base_dto.SimpleResponse
404资源未找到gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.MinorsProtectionConfigResponse

FieldTypeRequiredExampleConstraintsDescription
child_default_max_privacy boolean No True
content_filter_enabled boolean No False
daily_usage_limit_min integer No 60
digital_consent_age integer No 13
live_stream_blocked_under_16 boolean No False
minor_data_retention_days integer No 365
minors_age_threshold integer No 18
monthly_spend_limit integer No 10000
night_mode_enabled boolean No False
night_mode_end string No 06:00
night_mode_start string No 22:00
tenant_id string No tnt_abc123

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No