/internal/notification/templatesInternal API called by seed script to create a template by passing template title, locale, etc. in the request body. Protected by InternalAPIKeyMulti.
Schema: dto.InternalCreateTemplateRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
string |
No | |||
content |
string |
No | |||
format |
string |
No | |||
locale |
string |
No | |||
name |
string |
No | |||
priority |
string |
No | |||
title |
string |
No | |||
type |
string |
No | |||
variables |
array of string |
No |
| Status | Description | Schema |
|---|---|---|
| 201 | Created successfully | dto.DataResponse-dto_TemplateResponse |
| 400 | Invalid request parameters | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 401 | No valid X-API-Key provided | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 500 | Internal server error | gitee_com_linmes_authms_base_dto.SimpleResponse |
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
data |
dto.TemplateResponse |
No | |||
message |
string |
No | |||
timestamp |
string |
No |
Notification template info
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
content |
string |
No | Dear {{user_name}}, welcome to {{app_name}}! |
Content | |
created_at |
string |
No | 2026-01-01T00:00:00Z |
Creation time | |
name |
string |
No | welcome_notification |
Template name | |
subject |
string |
No | Welcome to {{app_name}} |
Subject | |
template_id |
string |
No | tpl_abc123 |
Template ID | |
type |
string |
No | system |
Type | |
variables |
array of string |
No | ['["user_name"', '"app_name"]'] |
Variables |
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
message |
string |
No | |||
timestamp |
string |
No |