Skip to main content
mikeh45613900
Participant
Jul 18, 2017 5:00 PM UTC
Question

API: Enroll learner to course as Admin

I'm trying to integrate the Adobe Captivate Prime API to create a new learner and enroll them in a course programatically from a web app. The user can register on our site, then it calls the API to create them as an Adobe Captivate user and enrolls them in a specific course.

I'm able to create the user, but I can only seem to enroll them in a course when teh user is authorized.

Is there ANY way authorized as an admin that you can enroll a learner in a specific course? The API documentation is very minimal and unclear about what is possible.

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Participant
Jul 7, 2021 10:41 AM UTC

Yes bro same here.I am Stucking around 2 hours.

Translate
Participating Frequently
Aug 3, 2018 8:36 AM UTC

Admin can enroll a learner into a specific course.


Corresponding endpoint mentioned in the documenation V2 admin:
  POST /users/{id}/enrollments


Example: https://captivateprime.adobe.com/primeapi/v2/users/1234567/enrollments?loId=course%3A912914&loInstanceId=course%3A934914…

To get loId and loInstanceId, need to invoke below api as per requirement:
  1. https://captivateprime.adobe.com/primeapi/v2/learningObjects

2. https://captivateprime.adobe.com/primeapi/v2/learningObjects/<loId>

loId can be of the format of
  course:12345 , learningProgram:12345, certification:12345, jobAid:12345

This is because lo -> learningObject can be of the four types viz. [course, certification, learningProgram, certification]

Translate