post http://{{url}}/v1/notifications/templates
Create a notification template (available for email, sms and webhook notifications types).
Request body
Note:
* If the type is message and the html is true the body will be validated on the valid html format.
* If the type is message and the html is false the body will be considered as plain text.
* If the type is fields and the html is true then an error will occur (incompatible values).
field | required | type | description |
---|---|---|---|
body | + | string | Use custom text or/and predefined variables, in which PowerBoard automatically pulls values from customer, charge or subscription data objects. |
label | + | string | Name of current template to identify it further |
html | - | bool | Body could be in html or plain text format. Allowed values true, false, default is false |
type | - | string | Allowed values: message, fields. Default is message |
notification_event | + | string | Event to trigger notification. Look at the Event table |