I'm trying to get the course count of an account. The resource that I am using is
https://tamuct.test.instructure.com/api/v1/accounts/1?include[]=course_count
It's not returning a course_count field. What am I doing wrong?
Hi @steven_hill,
According to the accounts API documentation, the "get a single account" endpoint doesn't have any include parameters. If you list accounts instead, you can use the include parameter (you'll just have to go through the returned list of results to find the account you're looking for, remembering pagination may need to be taken into account if you have access to a lot of accounts). I'm not sure why the API was designed this way, but I hope this info gets you going!
-Chris
That was it. I knew I was missing something. Thanks for your help!
At a technical level, if a user exists in two separate Canvas instances, is this a problem a Canvas Trust can address? If so, how? Can you add a trust(ed) login to an existing user account? Most of the (very limited) documentation I've found seems to focus on Trusts operating with enrollments, not users, but it does seem…
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…
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…
Summary:The Learning Mastery Gradebook allows drag-and-drop reordering of outcome columns, and this triggers a call to /api/v1/courses/:course_id/assign_outcome_order. The API returns 204 No Content (success), but the column order does not persist after page refresh. Steps to Reproduce: Open Learning Mastery Gradebook for…
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…