cancel
Showing results for 
Search instead for 
Did you mean: 
Learner II

How to add a new course to all courses but not to the users dashboard through api?

Hey,

We created a lot of new courses for the new term. Our teachers do manually add stars to courses so they can decide which courses appear on their dashboard.

All the new courses that where created through the api did also get a star, so the organised dashboard of our teachers suddenly became completely unorganised. The new courses where added a few months before the start of the new term, so a lot of teachers did get confused.

Is it possible to add courses to all courses through the api, but not to the users dashboard?

0 Kudos
1 Reply
Surveyor

Hi Tobe,

I guess these are the APIs you are looking for (Favorites - Canvas LMS REST API Documentation ). When new course is created, you should have the course id and user id. And here is a sample:

/api/v1/users/self/favorites/courses/<course_id>?as_user_id=<user_id>

Best,

Mu