Canvas Submissions API: 401 Unauthorized

Jump to solution
ross-h-miller
Community Novice

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

Labels (1)
1 Solution
pklove
Community Champion

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

View solution in original post