Only users with the ADMINISTRATOR scope in the current context can assign trainings to hierarchy levels. Make sure your API token grants administrator privileges. See Understanding Scopes for more information.
To assign a training to a specific hierarchy level, use the assignTrainingToLevel mutation. Access policy:
  • The API user context must have permission to manage training assignments.
  • The specified trainingId must exist and be accessible.
  • The specified hierarchyLevelId must exist and be accessible.
The mutation accepts the following arguments:
ArgumentTypeDescriptionDefault
trainingIdIDRequired. The unique identifier of the training to assign.
hierarchyLevelIdIDRequired. The unique identifier of the hierarchy level to assign the training to.
This operation creates a relationship between a training and a hierarchy level, making the training available to users assigned to that level.
mutation assignTrainingToLevel {
  assignTrainingToLevel(
    trainingId: 4
    hierarchyLevelId: 1
  ) {
    errors
    response
  }
}