Notification Template
Notification template is template message to generate mail body when sending a specific mail for each action.
Create Notification Template
Example Request
curl --location '{host}/api/v1/notification-templates/' \
--header 'Authorization: Token {Token}' \
--header 'Content-Type: application/json' \
--data '{
"notification_type": "quotation_created",
"subject": "quotation_created",
"template": "Quotation {{ quotation.name }} ({{ quotation.number }}) created."
}'Example Response (200 OK)
{
"id": 8,
"notification_type": "quotation_created",
"subject": "quotation_created",
"template": "Quotation {{ quotation.name }} ({{ quotation.number }}) created.",
"created_at": "2024-02-01T14:49:27.613403Z",
"modified_at": "2024-02-01T14:49:27.614573Z"
}Example Response (400 Bad Request)
List Notification Templates
Example Request
Example Response (200 OK)
Get Single Notification Template
Example Request
Example Response (200 OK)
Example Response (404 Not Found)
Update Notification Template
Example Request
Example Response (200 OK)
Delete Notification Template
Example Request
Example Response (204 No Content)
204 No Content
Last updated
Was this helpful?

