The current submissions endpoint does not reliably support teachers retrieving all student submissions.
When requesting submissions across students, Canvas requires the query parameter:
Without this parameter, the request may fail or return incomplete results.
Suggested request format:
/courses/{course_id}/students/submissions?student_ids[]=all&per_page=100
It may also be helpful to support both roles via configuration, for example:
MODE = "student" or "teacher"
student mode → downloads only the current user's submissions
teacher mode → downloads submissions for all students
The current submissions endpoint does not reliably support teachers retrieving all student submissions.
When requesting submissions across students, Canvas requires the query parameter:
Without this parameter, the request may fail or return incomplete results.
Suggested request format:
/courses/{course_id}/students/submissions?student_ids[]=all&per_page=100It may also be helpful to support both roles via configuration, for example:
student mode → downloads only the current user's submissions
teacher mode → downloads submissions for all students