Chameleoon MAX · Tags
createTag mutation
createTag 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 tag. Call it to set up the tags an integration puts on records, such as one per order status in a shop.
codeis derived from the name when left out. Lowercase letters, digits and hyphens, at most 63 characters; unique among live tags.groupputs the tag in the group with that code; the tag then takes the group's agendas.agendasdefault to sales orders, purchase orders and the three invoice registers.
Permissions
Requires the tag.manage permission.
Errors
VALIDATIONoninput.nameorinput.codewhen blank, malformed or already used by a live tag; oninput.agendaswhen empty.NOT_FOUNDwhen no tag group has the code ininput.group.CONFLICTwith reasonTAG_GROUP_CONFLICTcannot happen here: a new tag is on no record.
Arguments
input:CreateTagInput!· required
Returns
Example
Mutation
Code
Variables
Code
Response
Code
Values are illustrative: replace IDs and codes with your own before you send the call.