Canvas API filtering course IDs where greater than value

MatTinker
Community Member

Hey there


I'd like to run an API call to list courses where the course ID (raw: id) is greater than a certain value. The closest I've got is:

/v1/accounts/81/courses?search_by=course&search_term=1521, or
/v1/courses/sis_course_id:CLRS90013_2019_AUG

However, neither allows me to work with integers of the field (raw) Id where I can run numerical queries, like a greater than filter. I wouldn't even know how to express these. Would you use '>=' or I've also seen [gte]. 

I'm sort of aware that I might be able to attach a query string to some JSON script, but unsure how to go about linking this with what I know about API calls. It feels like this is a filter you should be able to express in the API call.

Any guidance appreciated. 

0 Likes