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

PUT /admin/notifications/templates/{id}

更新指定ID的通知模板内容 参考:CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance。

通知服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 模板ID

Request Body

Schema: dto.UpdateTemplateRequest

FieldTypeRequiredExampleConstraintsDescription
content string No
name string No
status string No
subject string No
type string No
variables array of

string

No

Responses

StatusDescriptionSchema
200更新成功dto.TemplateDetailResponse
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.TemplateDetailResponse

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

dto.TemplateResponse

通知模板信息

FieldTypeRequiredExampleConstraintsDescription
content string No 亲爱的{{user_name}},欢迎加入{{app_name}}! 内容
created_at string No 2026-01-01T00:00:00Z 创建时间
name string No welcome_notification 模板名称
subject string No 欢迎加入{{app_name}} 主题
template_id string No tpl_abc123 模板ID
type string No system 类型
variables array of

string

No ['["user_name"', '"app_name"]'] 变量

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No