UpdateTemplateDto
codestring
Possible values: >= 2 characters and <= 60 characters
namestring
Possible values: >= 2 characters and <= 200 characters
subjectstring
bodystring
Possible values: non-empty and <= 8000 characters
channelstring
Possible values: [email, sms, whatsapp, in_app]
isActiveboolean
localestring
Possible values: Value must match regular expression LOCALE_REGEX
Example:
en-UGdeclaredVariables object[]
Phase 3 gap 10 — optional declared placeholder catalogue.
{{path}} placeholders in the body that are absent from this
list will produce a warning at save time (they still render).
Array [
pathstringrequired
Example:
client.firstNamepiiClassstringrequired
Possible values: [none, personal, sensitive, financial]
]
UpdateTemplateDto
{
"code": "string",
"name": "string",
"subject": "string",
"body": "string",
"channel": "email",
"isActive": true,
"locale": "en-UG",
"declaredVariables": [
{
"path": "client.firstName",
"piiClass": "none"
}
]
}