previewMailTemplate
Renders the compiled HTML of a template with sample data. Authorized.
Type: MailTemplatePreviewResult!
Arguments
id: UID! — UID of the mail template.languageCode:StringsampleData: JSON — Sample recipient data for the Handlebars merge fields.
Example
Abschnitt betitelt „Example“mutation($id: UID!, $languageCode: String, $sampleData: JSON) { previewMailTemplate(id: $id, languageCode: $languageCode, sampleData: $sampleData) { html subject }}