Importing and exporting a message template
Description
This functionality allows you to upload a message template to the platform or download it to your device. This can be a template for one channel, or for several channels at once. A zip file is used for export and import.
The corresponding buttons are available in the template editing window in the upper right corner:
— template import
— template export

Template import
To import a template into the platform, click on the icon . Next, click on the download area and select the zip file on your device.
Set up the import:
- Select the channels for which you want to import the template (Email, SMS, Push).
Resolve import conflicts. Conflicts arise if the data being imported and the data already stored in the platform are different. The table shows the old and new value. If you want to update the data, check the "Replace" column.
Click Accept to start the import process.

Zip file structure
A zip file is used for import. The archive must have a certain structure:
<catalog_name>/
<channel_name>/
<fieldname>.<type>
<attach>/
<fileid>/
<filename>
images/
<image_name>
template.json
Structure description:
| Element | Example | Description |
|---|---|---|
| <catalog_name> | template_newsletter | Root directory. You can use an arbitrary name. |
| <channel_name> | email sms push | The directory contains template data for a specific send channel. The directory name must match the channel. Import of Email, SMS and Push templates is available. Information about which files can be imported for each channel can be found here. |
| images | image_1.png | Directory for storing images |
| template.json |