Chameleoon MAX · Print templates
updatePrintTemplate mutation
updatePrintTemplate 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.
Updates a print template's name, language, body or default flag. Call it to change a template of your own. A field you omit keeps its value.
- Requires the
company.writepermission on an API key that no legal-entity scope narrows. NOT_FOUNDwhen the template does not exist.VALIDATIONwith reasonARCHIVEDwhen the template is archived. Restore it withsetPrintTemplateArchivedfirst.- The
bodyis checked as increatePrintTemplate, with the same errors. CONFLICTwith reasonDUPLICATE_NAMEorDEFAULT_TAKEN, as increatePrintTemplate.
Arguments
input:UpdatePrintTemplateInput!· required
Returns
Example
Mutation
Code
Variables
Code
Response
Code
Values are illustrative: replace IDs and codes with your own before you send the call.