Whether the email shows a header, and the Flex design applied to it. Returned when reading, creating or updating a single template, not in lists. On create or update, sending it replaces the stored header; leaving it out (or sending null) keeps the stored one.
| Property | Description | ||||||
|---|---|---|---|---|---|---|---|
| aspectRatio nullable |
The section's canvas aspect ratio, e.g. |
||||||
| basedOn required nullable |
The design the section was applied from, to mark it in the design picker. Not used to render. Dropped when
|
||||||
| flexSection nullable |
A copy of the applied Flex section (a JSON object, at most 64 KB), with |
||||||
| mode |
|
||||||
| schemaVersion |
The Flex section shape version. Defaults to 1. |
The following schema is based on OpenAPI 3.0 and is provided in our downloadable OpenAPI document.
{
"description": "Whether the email shows a header, and the Flex design applied to it. Returned\nwhen reading, creating or updating a single template, not in lists. On\ncreate or update, sending it replaces the stored header; leaving it out (or\nsending null) keeps the stored one.",
"properties": {
"aspectRatio": {
"description": "The section's canvas aspect ratio, e.g. `2 / 1`. Required with a `flexSection`.",
"maxLength": 16,
"nullable": true,
"type": "string"
},
"basedOn": {
"description": "The design the section was applied from, to mark it in the design\npicker. Not used to render. Dropped when `flexSection` is null.",
"nullable": true,
"properties": {
"id": {
"description": "The design's public identifier (a UUID).",
"format": "uuid",
"type": "string"
},
"source": {
"description": "`seed` for a ShootProof design template, `saved` for a design in My Designs.",
"enum": [
"seed",
"saved"
],
"type": "string"
}
},
"required": [
"source",
"id"
],
"type": "object"
},
"flexSection": {
"description": "A copy of the applied Flex section (a JSON object, at most 64 KB), with\n`((tokens))` left intact. It's kept as is when the design it came from\nchanges or is removed. Null when no design is applied. A cover photo\nlayer is only accepted on email types that have a cover photo.",
"nullable": true,
"type": "object"
},
"mode": {
"description": "`none` shows no header photo or Flex design. `include` shows the applied\nFlex design, or the email's default header when none is applied.\nDefaults to `include`.",
"enum": [
"none",
"include"
],
"type": "string"
},
"schemaVersion": {
"description": "The Flex section shape version. Defaults to 1.",
"minimum": 1,
"type": "integer"
}
},
"required": [
"mode"
],
"title": "Email Template Header",
"type": "object"
}