editTaxonomyTerm
mutation should be used.
A PATCH
method is used for editing. It means that only not empty properties will be updated.
If a parent should be set, an appropriate term can be found with getTaxonomyTermByName
query
Access policy:
termId
- ID of the taxonomy term that should be updated;termData
- the object with the following properties:Argument | Type | Description |
---|---|---|
name | String | An updated name (label) of the taxonomy term. |
parentId | ID | The parent term ID. Set to 0 to reset the level. Set to null or to the current level to keep it unchanged. |