Skip to Content
API ReferenceTemplatesUpdate template

Update template

PATCH /api/v1/partner/email/templates/:id

All 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"] }
FieldTypeNotes
subjectstring
htmlstring
textstring
react_email_jsonstringWhen supplied, re-renders to fresh html + text
declared_varsstring[]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"}'