Chameleoon MAX · Email templates
convertEmailTemplateToHtml mutation
convertEmailTemplateToHtml is a GraphQL mutation of the Chameleoon MAX API. Send it as POST https://max-api.chameleoon.sk/api/v1/graphql with your API key, see Chameleoon MAX.
Creates a new HTML template from a JSON one. Call it when you want to edit the HTML by
hand. The JSON template stays as it is.
- The new template's one all-languages variant is the design rendered to HTML and text, with
the
JSONvariant's subject. - The texts, defaults and resource kind are copied.
- Requires the
emailTemplate.managepermission. VALIDATION(fieldfrom) with reasonNOT_JSONwhen the template is not aJSONone, built-in templates included.
Arguments
input:ConvertEmailTemplateToHtmlInput!· required
Returns
Example
Mutation
Code
Variables
Code
Response
Code
Values are illustrative: replace IDs and codes with your own before you send the call.