Only users with the ADMINISTRATOR scope in the current context can update hierarchy levels. Make sure your API token grants administrator privileges.
See Understanding Scopes for more information.
updateHierarchyLevel
mutation to modify an existing hierarchy level. This mutation uses partial update (PATCH-like) semantics: only the fields you provide are updated; omitted fields remain unchanged.
Access policy:
- The API user context must have permission to update hierarchy levels.
- A hierarchy level with the provided
id
must exist. - If
parentId
is provided and is not0
, a hierarchy level with this ID must exist.
Argument | Type | Description | Default |
---|---|---|---|
id | ID | Required. ID of the hierarchy level to update. | — |
hierarchyLevel | Object | Required. Fields to update, as described below. | — |
Argument | Type | Description |
---|---|---|
label | String | Updated display name of the hierarchy level. |
parentId | ID | New parent hierarchy level ID. Set to 0 to move the level to the top level. Omit to keep it unchanged. |
To keep the current parent, omit
parentId
. To move a level to the top, set parentId
to 0
.