How do I copy Templates to another Server?

If you have a template you want to use for multiple servers in your account, you can quickly copy the template over to additional servers.

Duplicating a single template

  1. Open the template you want to duplicate.
  2. Next to the Save button, select the dropdown arrow and then select Duplicate.
  3. Enter the template name and select the server you want to copy the template to, then choose Duplicate.
  4. After duplicating, there's the option to edit the copied template or return to the original template.

Copying multiple templates to another server

Using Postmark's UI
  1. Open the server containing the templates you want to push to another server and head to the Templates page.
  2. Click the Push to another server button.

    Push templates to another server
  3. Select the destination server you want to push the template(s) to.

    You will see a preview of the templates heading to the destination server, along with whether they will be created for the first time (+ icon) or will update an existing template (pencil icon). Choose Preview button if you want to preview the changes.

    Preview Changes
  4. Choose Push now to complete the push of the templates to the destination server.

    Select Destination Server
Using the Templates API
Templates can be copied from a source server to another server using the Templates API as well.
Use this option for programmatically keeping your templates in sync across multiple environments or giving your users a way to sync template changes from your own UI.
Method: PUT
JSON Body:
{
"SourceServerID": <source server id>,
"DestinationServerID": <destination server id>,
"PerformChanges": true
}
Example curl command:
curl "https://api.postmarkapp.com/templates/push" \
-X PUT \
-H "Accept: application/json" \
-H "X-Postmark-Account-Token: <account API token>" \
-d "{"SourceServerID":<source server id>, "DestinationServerID":<destination server id>, "PerformChanges":true}”
Last updated May 27th, 2019

Still need some help?

Our customer success team has your back!