Creates the notification preference if it does not exist and sends the notification. Call this method only for one system user. UserService uses this method to send system emails
Request
Security:
vc-security
Request Body schema: application/json
id
string
sender
string
Pass the sender email if you don't want to use default sender email address
Array of objects (UserKey)
An array of UserKeys who will receive the emails. This is required to send email to system users
rawRecipient
string
Email address of the receiver. This is required to send email to non system user
type
string (Type)
The type of the notification
Enum:"EMAIL""SMS""PHONE""WEB"
eventKey
string
Key of the notification event. It is mandatory for system users. Event key must already exists.
productName
string
Name of the product for which notification has been sent for. Notification History uses this
tags
Array of strings
Any tag that should be saved with the notification entity
language
string
Locale of template. for example en. It is mandatory if you provide the template name for non system user
summary
string
Subject of the notification if it is email or content of the notification if it is sms.Summary is mandatory if you don’t provide template name
details
string
Content of the notification if it is an email. Details is mandatory if you don’t provide the template name or it is a digest email
shortSubject
string
Short subject of the notification that will be displayed in the notification history of a system user. Provide it if you want to override the short subject from the template.
shortDescription
string
Short summary of the notification that will be displayed in the notification history of a system user. Provide it if you want to override the short summary from the template.
templateNameKey
string
The template name key if you want to send the email using template. This is required for a templated email. The template must exist in the system.
object
Key/value pair for the variables that you wanna replace with the value in the template. The template variables are defined using {{variablename}}. For example you have a variable called username in template and defined as {{username}}, you can pass "dataModel":{"username":"TestUser"} to replate username with value TestUser