Update Template
postmark.update_template
ActionEmailconnection required
Calls the Postmark API with the connection's credentials.
Change a template's name, subject or bodies. Only the fields given are sent, so the rest keep their stored values.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Postmark
- Secret shape
- the server API token, or {"server_token": "…"}
- Config it needs
- message_stream, from_address, base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
7 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
template The template's numeric TemplateId or its alias — Postmark accepts either in the path. | string | Yes | — | — | — |
name New name for the template. | string | No | — | — | Welcome email |
subject New subject line. | string | No | — | — | — |
html_body New HTML body. | string | No | — | — | — |
text_body New plain-text body. | string | No | — | — | — |
alias New alias for the template. | string | No | — | — | — |
layout_template Alias of the layout template to render this one inside. | string | No | — | — | — |
- At least one of name, subject, html_body, text_body, alias, layout_template must be set.
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"name": "Welcome email"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
TemplateId The template's numeric Postmark id. | number | — |
Name The template's name after the edit. | string | — |
Alias The template's alias after the edit. | string | — |
Active True while the template can be sent with. | boolean | — |
LayoutTemplate The layout alias after the edit. | string | — |
{
"Active": false,
"Alias": "",
"LayoutTemplate": "",
"Name": "",
"TemplateId": 0
}See Update Template run in a workflow.
In a technical demo we add the Postmark connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.