Update template
Updates any field of a template.
PATCH/templates/:id_or_alias
Path parameters
id_or_aliasstringrequiredTemplate ID or alias.
Body parameters
namestringNew name, unique within your team. Renaming keeps the alias.
aliasstringNew alias, unique within your team. Sends that use the old alias stop working.
subjectstringSupports variables.
htmlstringSupports variables.
textstringPlain-text version.
fromstringDefault sender.
reply_tostringDefault Reply-To.
Only the fields you send change; everything else stays as it is.
Request
curl -X PATCH 'https://api.mailvina.com/templates/:id_or_alias' \
-H 'Authorization: Bearer mv_xxxxxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"subject": "Welcome aboard, {{name|friend}}!"
}'Response
{
"object": "template",
"id": "f3b9756c-f4f4-44da-bc00-9f7903c8a83f"
}