Has anyone tried to create a notification template? Need help with the body for this API, below is the body I am trying to pass,
{
"medium": "EMAIL",
"key": "testTemplate",
"name": "testTemplate",
"description": "Template to be used for Customization",
"locale": "en",
"subject": "Template to be used for Customization",
"header": "Dear $__recipient.name,<br /><br />",
"body": "Please put body here",
"footer": "<br />Thanks,<br /> The $__global.productName Team<br />",
"from": "$__global.emailFromAddress",
"replyTo": "$__global.emailFromAddress",
"slackTemplate": null,
"teamsTemplate": null
}
First, copy the response body from the response of above get template link and paste it into the request body for this endpoint. Modify the fields you want to change and submit the POST request when ready.
Thanks for the response, I tried this, am able to update the existing template using the same key, but if I use a new key, it is not working. The example body I have posted in my post.
Thanks for the response. Yes, if I use the key from the list of valid keys or say the list of existing keys then it works. But if I use a new key which is not existing then it fails.
Is this API only for updating the existing template and not for creating template?
I was able to create a new template… It’s just that we need the key from predefined list and I am not sure where to find this list.
If you find the source please post it here