Appearance
GET
/communication/template-text/legacy-templates/{templateCode}Required scope:
templatetext:readReturns locale presence information for a template code that exists in the legacy dbo.notificationtemplate table. Use this before creating a new template to detect name collisions with existing legacy templates.
Parameters ​
Path parameters
templateCode stringThe template code to look up in the legacy notificationtemplate table.
Response ​
The legacy template information was found.
JSON
{
"templateCode": "order-confirmation",
"active": true,
"locales": [
{
"langCode": "sv",
"hasSubject": true,
"hasBody": true,
"active": true
}
]
}
| Error code | Description |
|---|---|
template-not-found | No legacy notificationtemplate rows exist for the given code. |