Skip to main content
mikeh45613900
Participant
July 18, 2017
Question

API: Enroll learner to course as Admin

  • July 18, 2017
  • 2 replies
  • 764 views

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 has been closed for replies.

2 replies

Participant
July 7, 2021

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

Participating Frequently
August 3, 2018

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]