With regard to
https://canvas.instructure.com/doc/api/discussion_topics.html#method.discussion_topics.index
and the order_by=recent_activity - it appears to return results with the oldest posts first. Is there a way to reverse the order (and why would it do this!)?
/api/v1/courses/:course_id/discussion_topics?order_by=recent_activity
I got a feeling you already know but if it's an option to add a script to handle the data you can just use a JS .reverse() method on the data array.
Thank you. I hadn't thought about that, partly because this was for an MS Power Automate flow.
I would have to make a request, then extract the last page, and then request that if there are a lot of topics. I guess I could just request 100 results on the assumption that no sane course would have that many topics....but not sure that's a good assumption.
I went with the default order (by position) fwiw.
I looked through the LTI Variable Substitutions documentation and while there are variable substitutions available for Canvas.term.name and Canvas.term.id (which is the Canvas incremented ID like "104"), I was surprised to see there was no option for Canvas.term.sisSourceId I tried testing other possible variants that may…
Rendering bug here: Canvas - Instructure Community Seems to only appear in Edge; fine in Chrome and Firefox
I have a developer key in our Test instance: How would I use this in a local program to make a REST API call? Looking at https://developerdocs.instructure.com/services/canvas/oauth2/file.developer_keys: Developer keys are OAuth2 client ID and secret pairs stored in Canvas that allow third-party applications to request…
I'm building a tool for my institution that imports grades from another LTI tool into Canvas so instructors can automate late assignment policies not otherwise supported by Canvas. I'm trying to use the LTIv1.3 ID which is readily available on the LTI-side as a link to the student record on Canvas, but I can't find the ID…
How can one track Canvas Media use without having the reports available from Canvas Studio? Checking API endpoints and the Data 2 schema, there do not seem to be dedicated Canvas Media endpoints. Am I missing some? A method I've considered is using the body field of the wiki_pages table, as this contains the html code of…