Canvas Submissions API: 401 Unauthorized
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a service account that is an account admin that I make a number of other API calls with, but when I try to call Submissions - submissions for students endpoint I get a 401 status code back. Any ideas why I might be getting this error? I can get submissions via other endpoints like the assignments and other submission endpoints.
GET v1/courses/13/students/submissions
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Probably nothing odd or language realted, you can see the issue in your browser.
Have you specified any student_ids[]:
"List of student ids to return submissions for. If this argument is omitted, return submissions for the calling user."
There is a special value "all".
So I'm guessing you want:
/api/v1/courses/239/students/submissions?student_ids[]=all