Chameleoon MAX · Print templates
createPrintTemplate mutation
createPrintTemplate 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 print template. Call it to store a layout of your own for a kind of document.
Permissions
Requires the company.write permission on an API key that no legal-entity scope narrows,
because a template prints the documents of every company.
Errors
| Code | Reason | When |
|---|---|---|
CONFLICT | DUPLICATE_NAME | An active template of the same name, kind and language exists. |
CONFLICT | DEFAULT_TAKEN | Another write made a template the default at the same moment. Try again. |
VALIDATION | TEMPLATE_INVALID | The renderer refuses the body. extensions.problems lists each problem as {path, message}. |
VALIDATION | TOO_LARGE | The body is over 512 KiB. |
Arguments
input:CreatePrintTemplateInput!· required
Returns
Example
Mutation
Code
Variables
Code
Response
Code
Values are illustrative: replace IDs and codes with your own before you send the call.