Assignment API returns an empty list even if the gradebook shows assignments

Jump to solution
fabiocunha
Community Explorer

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?

0 Likes
1 Solution
fabiocunha
Community Explorer
Author

I find the answer to my question. I was using a course id that does not have any assignments. Oh my god.

View solution in original post