getLearningPath
query, you’ll find a userEnrolled
field that indicates whether the user is currently enrolled in the Learning Path. If this field is set to false
, the user must be enrolled before they can begin the learning path.
ENROLL_LP
CTA data to render an Enroll button on the Learning Path Homepage. When the user clicks this button, the client should execute the createLpIndividualMembership
mutation using the lpId
from the ENROLL_LP
CTA.
VIEW_LP
CTA, which indicates that the user should now be redirected to the LP HP or the page should be refreshed to load updated data from the API.
Here’s how the self-enrollment process appears in our learner area:
ADMINISTRATOR
—to enroll others into public or private Learning Paths.
To enroll another user, the administrator must execute the createLpIndividualMembership
mutation, passing the target user’s userContextId
.
If the client platform does not store userContextId
, it can be retrieved by calling the getUserContext
query using the user’s UUID
.
ADMINISTRATOR
—to unenroll others from public or private Learning Paths.ADMINISTRATOR
—to unenroll others from public or private Learning Paths.