Update template

Updates any field of a template.

PATCH/templates/:id_or_alias

Path parameters

  • id_or_aliasstringrequired

    Template ID or alias.

Body parameters

  • namestring

    New name, unique within your team. Renaming keeps the alias.

  • aliasstring

    New alias, unique within your team. Sends that use the old alias stop working.

  • subjectstring

    Supports variables.

  • htmlstring

    Supports variables.

  • textstring

    Plain-text version.

  • fromstring

    Default sender.

  • reply_tostring

    Default 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"
}