Chameleoon MAX · Email templates
removeEmailTemplateVariant mutation
removeEmailTemplateVariant 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.
Removes one variant of the template. Call it with the version you read.
- Requires the
emailTemplate.managepermission. NOT_FOUND(fieldlanguage) when the template has no such variant.VALIDATIONwith reasonLAST_VARIANTwhen it is the template's only variant. AJSONtemplate's all-languages variant always is.CONFLICTwith reasonTEMPLATE_CHANGEDwhen somebody saved the template after you read it.
Arguments
input:RemoveEmailTemplateVariantInput!· required
Returns
Example
Mutation
Code
Variables
Code
Response
Code
Values are illustrative: replace IDs and codes with your own before you send the call.