Only users with the ADMINISTRATOR scope in the current context can assign taxonomy terms to hierarchy levels. Make sure your API token grants administrator privileges.
See Understanding Scopes for more information.
assignTaxonomyTermToLevel
mutation.
Access policy:
- The API user context must have permission to manage taxonomy term assignments.
- The specified
taxonomyTermId
must exist and be accessible. - The specified
hierarchyLevelId
must exist and be accessible.
Argument | Type | Description | Default |
---|---|---|---|
taxonomyTermId | ID | Required. The unique identifier of the taxonomy term to assign. | — |
hierarchyLevelId | ID | Required. The unique identifier of the hierarchy level to assign the taxonomy term to. | — |
This operation creates a relationship between a taxonomy term and a hierarchy level, which can be used for categorization and filtering purposes.