Chameleoon MAX · Email templates
copyEmailTemplate mutation
copyEmailTemplate 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.
Copies a built-in or organisation template to a new code. Call it to change a built-in template, which cannot be written directly.
- The copy keeps the original's variants, texts and defaults. A copy of a
JSONtemplate keeps its one all-languages variant. - Requires the
emailTemplate.managepermission. NOT_FOUND(fieldfrom) when the template to copy does not exist.VALIDATIONwith reasonBUILT_IN_CODE(fieldcode) when the new code is a built-in template's.CONFLICTwith reasonCODE_TAKENwhen the organisation already has it.
Arguments
input:CopyEmailTemplateInput!· required
Returns
Example
Mutation
Code
Variables
Code
Response
Code
Values are illustrative: replace IDs and codes with your own before you send the call.