Superadmin APIs/Email & Notification Templates
Update Email Template
PATCH
/superadmin/emailtemplates/:idBearer token required
SUPERADMINContent-Type:
application/jsonPath Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Required |
Request Example
JSON
{
"emailSubject": "Your Vehicle {{vehicleName}} Alert",
"message": "<p>Vehicle <b>{{vehicleName}}</b> triggered an alert at {{time}}.</p>"
}Code Examples
curl -X PATCH 'https://<your-domain>:3001/superadmin/emailtemplates/:id' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"emailSubject": "Your Vehicle {{vehicleName}} Alert",
"message": "<p>Vehicle <b>{{vehicleName}}</b> triggered an alert at {{time}}.</p>"
}'