Chameleoon MAX · Email templates
saveEmailTemplateDesign mutation
saveEmailTemplateDesign 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.
Saves the design of a JSON template's one all-languages variant and replaces its whole
dictionary, in one change. Call it with the version you read. The variant keeps its subject.
- Requires the
emailTemplate.managepermission. - A
languageis refused withVALIDATION(fieldlanguage) and reasonJSON_ONE_VARIANT, because aJSONtemplate's languages are its translations. - An
HTMLtemplate is refused withVALIDATION(fielddesign) and reasonSYNTAX_MISMATCH. CONFLICTwith reasonTEMPLATE_CHANGEDwhen somebody saved the template after you read it.
Arguments
input:SaveEmailTemplateDesignInput!· required
Returns
Example
Mutation
Code
Variables
Code
Response
Code
Values are illustrative: replace IDs and codes with your own before you send the call.