The Opigno Enterprise API allows administrators to control access to a specific training by defining Training Prerequisites conditions. These conditions ensure that a learner can only access the training after successfully completing one or more designated prerequisite trainings. By configuring prerequisites, administrators can specify the condition type that defines which trainings must be completed before a training is made accessible to the user.Documentation Index
Fetch the complete documentation index at: https://docs.opigno.com/llms.txt
Use this file to discover all available pages before exploring further.
Data Structure
TrainingPrerequisite
Represents a conditions preset to be met by user context for training application.| Field | Type | Description |
|---|---|---|
conditionType | TrainingPrerequisitesConditionType! | The condition type. |
conditionFormulaExpression | String! | The logical expression formula to be met for accessing the Learning Path. Represented by list of LP’s ids separated by logical operators such as: AND, OR. |
learningPaths | [LearningPath] | List of referenced LearningPath objects to be considered for prerequisites conditions. |
conditionPassed | Boolean! | Indicates whether the current user context is passed the prerequisites condition for the Learning Path. |
TrainingPrerequisitesConditionType
TheTrainingPrerequisitesConditionType enum defines the possible variant of training prerequisites condition types
| Condition type | Description |
|---|---|
AND | All the listed Learning Paths in the prerequisites section should be successfully passed. |
OR | At least one Learning Paths from listed references in the prerequisites section should be successfully passed. |
CUSTOM | The list of required Learning Paths to be passed is defined by custom condition formula expression. |
Queries
The training prerequisites can be accessed by anyLearningPass object with trainingPrerequisites field:
- You must have
AUTHENTICATEDscope to access prerequisites. Anonymous users cannot retrieve this data. - The API user context must be present and valid - otherwise, training prerequisites data won’t be presented.