Hey everyone! I’m trying to figure out how to get a list of all the courses that allow self-enrollment in our D2L system. Right now, I can check individual courses if I know their org unit code, but that’s not very efficient.
I know there’s a page in D2L that shows all self-registration courses, but I’m looking for an API solution. I’ve tried a few things, but no luck so far.
Has anyone found a way to do this? Maybe something like:
GET /api/courses?selfEnrollment=true
That would be super helpful! Any ideas or tips would be great. Thanks!
I’ve been working with D2L’s API quite a bit, and unfortunately, there’s no direct way to fetch all self-enrollment enabled courses in one go. The /d2l/api/lp/1.4/courses/ endpoint is useful, but it doesn’t provide filtering for self-enrollment status.
Here’s what I’ve found works best:
Fetch all courses using the courses endpoint.
For each course, query its details to check the self-enrollment status.
Store the self-enrollment enabled courses in a separate list.
It’s not the most efficient method, especially for large institutions, but it gets the job done. You might want to implement some caching to speed things up on subsequent runs.
Have you considered reaching out to your D2L account representative? They might be able to provide custom API access or suggest a more efficient approach. In my experience, they’re usually quite helpful with these kinds of requests.
hey liam39, have u tried the /d2l/api/lp/1.4/courses/ endpoint? it might not give u exactly what u want, but u could grab all courses and filter them yourself. not perfect, but could work. maybe ask D2L support if theres a better way? they might have secret tricks. good luck man!
Oof, I feel your pain on this one. I’ve been down that rabbit hole before, trying to wrangle course data out of D2L. It’s like trying to find a needle in a haystack sometimes, right?
Have you tried poking around the /d2l/api/lp/1.4/courses/ endpoint? I know it’s not exactly what you’re looking for, but it might be a good starting point. From there, you could potentially grab all the courses and then filter them on your end. Not ideal, I know, but sometimes we gotta work with what we’ve got.
I’m super curious though - what are you planning to do with this info once you get it? Are you building some kind of course discovery tool? That sounds pretty cool if so!
Oh, and have you considered reaching out to the D2L devs directly? They might have some insider tips or maybe even a hidden endpoint we don’t know about. Worth a shot, I reckon.
Anyway, keep us posted if you figure it out! I’d love to hear what solution you end up with. Good luck, mate!