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 (pushing templates)

Pushing sends every Template and Layout from one Server to another Server.

For example — let’s say you’ve added a Layout and associated Templates to your staging server. With pushing, after testing the Templates, you’re able to push the Templates and Layouts to your production server.

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

  3. Select the destination Server you want to push the Template(s) to.

  4. Choose Push now to complete the push of the Templates to the destination Server. Choose Preview button if you want to preview the changes.

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.
When pushing, each Template must have a unique alias. For example, it’s not possible to push a Layout Template with an alias of“welcome-email” to a server that has a Standard Template with an alias of“welcome-email”.
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 June 25th, 2019

Still need some help?

Our customer success team has your back!