Skip to main content

I have a course allocation form from the user that programmatically needs to check if the user already exists in the learning plan or course. Based on what was asked for, I will add or remove them from the LP or course.  

I am unable to locate an API endpoint that can provide me with a list of users who are enrolled in a course or LP. Alternatively, I can’t find an endpoint that can provide me with all the LPs or courses for a particular user. 

If I can obtain a list of courses or LPs for a user, I can compare it with my records and send an add or remove request to the API endpoint to make necessary updates.

Can you please suggest any API endpoints that can help me achieve the above?
 

@Doe 

/learningplan/v1/learningplans/enrollments
/learningplan/v1/learningplans/{learning_plan_id}/courses/enrollments

 


@alekwo Can you please explain a bit more? Would I use this within the Docebo API Explorer or in Postman? Would the learning plan id be something I can get from from URL line, such as:

/legacy/admin/index.php%3Fr%3DCurriculaApp/curriculaManagement/courses%26id%3D185

Would it be 185 or 3D185?

Or neither?

I’m starting to learn APIs so the more info the better.

Thank you!

 


Reply