Assignment API returns an empty list even if the gradebook shows assignments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2019
11:56 AM
I use the following API endpoint to get all assignments for a course
api/v1/courses/:course_id/assignments
It returns an empty list for me, but when I access the grade book from Canvas UI, I get a list of all assignments for all students. Why I receive an empty list as a response when I use the API?
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2019
02:34 PM
I find the answer to my question. I was using a course id that does not have any assignments. Oh my god.