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 am calling the canvas API to get course Information. This is the endpoint that i am using /courses/{contextId}?include[]=account This is not returning the account.
Hi everyone, I am seeking some insight into how Canvas LMS handles HTTP errors and how they are reflected in the logs versus the user interface. We are currently observing the following behavior in our environment: Log-only errors: We are seeing 500 (Internal Server Error) and 503 (Service Unavailable) errors recorded in…
Hi everyone, If you write integrations against Canvas by Instructure at an institution — K-12, higher ed, corporate training, government, or anywhere in between — we'd love your feedback. We're running a short survey on the Canvas developer experience: APIs, data access, tooling, and documentation. Results will feed into…
I'm currently integrating an LTI tool and attempting to use the Activity.id.history https://canvas.instructure.com/doc/api/file.tools_variable_substitutions.html#activity-id-history variable, but I'm experiencing issues getting it to work properly. What I've Done: Added the Activity.id.history variable to my Developer…
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…