notification-template-controller
Save notification template (saveNotificationTemplate)
Creates or updates notification template.
Here is an example of template to send notification via Web, SMS and Slack:
{
"name": "Greetings",
"notificationType": "GENERAL",
"configuration": {
"deliveryMethodsTemplates": {
"WEB": {
"enabled": true,
"subject": "Greetings",
"body": "Hi there, ${recipientTitle}",
"additionalConfig": {
"icon": {
"enabled": true,
"icon": "back_hand",
"color": "#757575"
},
"actionButtonConfig": {
"enabled": false
}
},
"method": "WEB"
},
"SMS": {
"enabled": true,
"body": "Hi there, ${recipientTitle}",
"method": "SMS"
},
"SLACK": {
"enabled": true,
"body": "Hi there, @${recipientTitle}",
"method": "SLACK"
}
}
}
}
Available for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.
post/api/notification/template
Request body
Example request
{
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "NOTIFICATION_TEMPLATE"
},
"createdTime": 1746028547220,
"tenantId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "TENANT"
}
}Response
OK
Example response
{
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "NOTIFICATION_TEMPLATE"
},
"createdTime": 1746028547220,
"tenantId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "TENANT"
}
}