Enroll Learners On Courses
Notes:
- Any errors will cause the entire mutation to be cancelled.
- Errors will be listed in the
errors array returned
- Enrolling a learner who is already enrolled on the course but hasn’t completed it will result in a reminder
- Enrolling a learner who has completed the course will result in them being re-enrolled onto the course.
mutation {
enrollLearnersOnCourses(courseIds: [ID!]!, learnerIds: [ID!]!, companyId: ID!): enrollLearnersOnCoursesResult
}
Unenroll Learners From Courses
Notes:
- This will return
true if any of the users are removed from the provided courses and false if there are no users to remove. No errors will be thrown.
- Users who have completed the any of the courses will not be unenrolled.
mutation {
unenrollLearnersFromCourses(courseIds: [ID!]!, learnerIds: [ID!]!, companyId: ID!): Boolean
}
Enroll Learners On Gap Analysis
Notes:
- Enrolling a learner who is already enrolled on the course but hasn’t completed it will result in a reminder
- Enrolling a learner who has completed the Gap Analysis will report them back as a
failure with the reason complete as you cannot complete the course twice but this will not cause the mutation to fail.
mutation {
enrollLearnersOnGapAnalysis (learnerIds: [ID!]!, companyId: ID!): enrollLearnersOnGapAnalysis
}