Skip to content
Splashify Pro
Email docsEmail

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

json
{
  "subject": "Welcome to {{company_name}}",
  "html": "<h1>Updated welcome ๐Ÿ‘‹</h1>",
  "text": "Updated welcome.",
  "declared_vars": ["company_name"]
}

cURL

bash
curl -X PATCH \
  https://api.splashifypro.com/api/v1/partner/email/templates/tpl_550e8400-... \
  -H "Authorization: Bearer $SPLASHIFY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"subject": "New subject"}'