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.

FieldTypeRequiredDefaultConstraintsExample
template
The template's numeric TemplateId or its alias — Postmark accepts either in the path.
stringYes———
name
New name for the template.
stringNo——Welcome email
subject
New subject line.
stringNo———
html_body
New HTML body.
stringNo———
text_body
New plain-text body.
stringNo———
alias
New alias for the template.
stringNo———
layout_template
Alias of the layout template to render this one inside.
stringNo———
  • 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

FieldTypeExample
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.