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?