createTaxonomyTerm mutation should be used.
If a parent should be set, an appropriate term can be found with getTaxonomyTermByName query
Note: vocabulary will not be created with an API, it should be created on the site manually.
- The API user context should have permission to create a taxonomy term in the given vocabulary. Otherwise, access denied response will be returned.
- The given vocabulary should exist on the site.
- If parent ID is not 0, a term with this ID should exist.
termData that is the object with the following properties:
For example, let’s create a new term in LP Domain vocabulary under the “Onboarding” item.

