Only users with the ADMINISTRATOR scope in the current context can create hierarchy levels. Make sure your API token grants administrator privileges.
See Understanding Scopes for more information.
createHierarchyLevel
mutation.
Access policy:
- The API user context must have permission to create hierarchy levels.
- If
parentId
is provided and is not0
, a hierarchy level with this ID must exist.
hierarchyLevel
, an object with the following properties:
Argument | Type | Description | Default |
---|---|---|---|
label | String | Required. The display name of the hierarchy level to create. | — |
parentId | ID | The parent hierarchy level ID. Use 0 or omit the field to create a top‑level hierarchy. | 0 |
To create a top‑level hierarchy level, set
parentId
to 0
or omit it.