Templates

Update template

Updates template metadata, labels, or content. Transactional email IDs and slugs are also resolved for compatibility.

put/templates/{templateId}

Path parameters

templateIdstring required

Template ID, transactional email ID, or transactional slug.

Request body

namestring
subjectstring
previewTextstring nullable

Inbox preview text. Send null to clear it.

htmlstring

Replacement HTML body. Mutually exclusive with blocks.

blocksobject[]

Replacement Sequenzy email blocks. Mutually exclusive with html. Put visual styling under styles; top-level style keys such as backgroundColor, backgroundOpacity, borderColor, borderWidth, and borderRadius are normalized into styles.

labelsstring[]

Replacement label names. Send an empty array to clear labels. Missing labels are created automatically.

labelstring[]

Compatibility alias for labels.

{"stackTrail":"paths:/templates/{templateId}:put:requestBody:content:application/json:schema:properties:updates","oasType":"schema","type":"unknown","description":"Unsupported nested update object. Requests using it return a validation error."}

Response

Template updated

successboolean
transactionalobject nullable

Example response

{
  "success": true,
  "template": {
    "labels": [
      "edm",
      "template"
    ]
  }
}

Changes