AnsweredAssumed Answered

How to Get Sections For Courses

Question asked by Michael Kromarek on May 7, 2019
Latest reply on May 7, 2019 by Michael Kromarek

In an effort to reduce the number of calls I need to make the the Canvas API, I'm trying to get "sections" to show up when calling:




with the following query attributes

  • enrollment_term_id=4574
  • published=1
  • include[]=sections
  • page=1
  • per_page=100


In the return, I see everything I expect, except the sections area.


If I then query https://<our_school_name><account_number>/courses/<specific_course_id> with the same parameters, the sections element shows up, but it is an empty array


If I then query the course sections directly like so



It shows two sections in the course, with their details.


I'm not sure if I'm missing a query parameter, or possibly have one set wrong.  But, from the api documentation, the first query should be returning the courses sections.  The second query should also return the sections and not an empty array.