Save a welcome template after trying it; empty subject and body restore the default
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
PUT
/api/v1/tenants/{tid}/account-kit/templates/{lang}Save a welcome template after trying it; empty subject and body restore the default
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
lang | path | string | required | Allowed values: "vi" "en" |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
object
subjectstring requiredbodystring required
Example
{
"subject": "string",
"body": "string"
}Responses
200 Saved
Content type: application/json
langstring requiredAllowed values:"vi""en"subjectstring requiredbodystring requiredPlain text, Go text/template fields such as {{.PanelURL}}
customboolean requiredfieldsarray<string> requiredupdated_atstring (date-time) optional
Example
{
"lang": "vi",
"subject": "string",
"body": "string",
"custom": true,
"fields": [
"string"
],
"updated_at": "2026-01-01T00:00:00Z"
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required