Create Notification Template

Hi All,

I am trying to create a notification template in IdentityNow, using the API. create-notification-template | SailPoint Developer Community

It gives 400 Bad Request.

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

}

Try get-notification-template | SailPoint Developer Community and get the existing EmailTemplate from the environment and then use post call to create new one based

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.

HI Priya,

id,Created and modified date looks to be mandatory attribute, have you tried below attributes, i do not see them in you json:

"id": "c17bea3a-574d-453c-9e04-4365fbf5af0b",
  "created": "2020-01-01T00:00:00.000000Z",
  "modified": "2020-01-01T00:00:00.000000Z"

These 3 fields are auto generated as per the docs. id is then used in the path when you want to update the template (typical for any PUT operation)

1 Like

I am “guessing” the key has to be from a list of valid keys. Try using the key from the example given in the docs

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 :pray:

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.