createTaxonomyTerm
mutation should be used.
If a parent should be set, an appropriate term can be found with getTaxonomyTermByName
query
termData
that is the object with the following properties:
Argument | Type | Description | Default |
---|---|---|---|
vocabulary | String | Required. Represents a machine name of the taxonomy vocabulary to create a term. | — |
name | String | Required. A name (label) of the taxonomy term that should be created. | — |
parentId | ID | The parent term ID. By default the term will be created without a parent, as a first-level item. | 0 |