Update template
PATCH /api/v1/partner/email/templates/:idAll fields optional — pass only what’s changing. template_name
cannot be changed; create a new template under the new name and
delete the old one.
Request body
{
"subject": "Welcome to {{company_name}}",
"html": "<h1>Updated welcome 👋</h1>",
"text": "Updated welcome.",
"declared_vars": ["company_name"]
}| Field | Type | Notes |
|---|---|---|
subject | string | |
html | string | |
text | string | |
react_email_json | string | When supplied, re-renders to fresh html + text |
declared_vars | string[] | Replaces existing list |
cURL
curl -X PATCH \
https://apis.splashifypro.com/api/v1/partner/email/templates/tpl_550e8400-... \
-H "Authorization: Bearer $SPLASHIFY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"subject": "New subject"}'