Error when requesting Enrollment Terms

jared_chap
Community Novice

I made the following call using a teacher level token:

https://myschool.instructure.com/api/v1/accounts/88824/terms?access_token=tokenvalue 

This is what was returned:

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

I am aware that in the past many API calls were scoped to only allow admins to call them, even if it was valuable to make the information available at a teacher or student level, BUT, there was an effort fix this that was successful and I haven't run into that problem in a while. 

Is this an example where this API was not updated to the more flexible scoping? Or is there a reason it is blocked? Or am I just doing it wrong?

I hope to get this sorted out soon. I have recently started working with K-12 clients that use terms extensively and need to get assignments and submissions by term so I can filter data appropriately.

Thanks!

Labels (1)