AnsweredAssumed Answered

Not authorized to list assignments for a class I am in?

Question asked by Joshua Raichur on Sep 22, 2017
Latest reply on Sep 23, 2017 by Stuart Ryan

Hi,

 

I'm trying to get a list of all the upcoming assignments for all my classes. This is the first time I'm using the Canvas API, so please excuse my ignorance.

 

I'm making this request for all the classes I am currently enrolled in (I have their course ids):

 

https://canvas.instructure.com/api/v1/courses/{COURSE_ID}/assignments?access_token={ACCESS_TOKEN}&bucket=upcoming

 

I'm able to get information for one of the courses (an array of assignments) but for the others, here is the object I receive:

{"status":"unauthorized","errors":[{"message":"user not authorized to perform that action"}]}

Am I doing something wrong? I can see these assignments on my Canvas dashboard.
I would assume that I should be able to retrieve them using the API.

Outcomes