-
Canvas API: Content tag for $Canvas.module.id in LTI
https://canvas.instructure.com/doc/api/file.tools_variable_substitutions.html Canvas.module.id Returns the module_id that the module item was launched from. Availability: when content tag is present What is and where do we set/find the content tag?
-
LTI 1.3 - Page not found error
I am getting a page not found error, while trying to link resources using an external tool when testing for Canvas LTI 1.3 integrations. This is the url, for which Canvas was throwing a 404 page not found error.…
-
Rate Limit Exceeded
Hey everyone. Newbie here. I'm looking through the docs, specifically the page on throttling. It say that I'll receive a 403 Forbidden (Rate Limit Exceeded) response if I'm over my limit. Question 1: How do I differentiate between a vanilla 403 and this context heavy 403? Am I suppose to check the ReasonPhrase of the…
-
Get an OAuth client ID as a student
I am trying to make a desktop app for canvas, and I'm struggling a bit with the authorization. I know I can use API Tokens to do so (And distribute them too)but having the end user do that is quite inconvenient. OAuth needs a client_id and client_secret that is only given/generated by admins and I would like to avoid that,…
-
Lti::KeyStorage.rotate_keys not working on setup without Consul
Hi, I recently noticed that Canvas had a key that was necessary for LTI and could be set in config/dynamic_settings.yml. Also there was a periodic job which attempted to rotate that key, and the method was Lti::KeyStorage.rotate_keys. But I found that this rotation didn't work on our self-hosted Canvas instance, because…
-
Issue with Changing SIS ID via API Using Postman
I receive 401-Unauthorized message when attempting to changing the value of SIS ID via API using Postman. However, I am able to successfully change (edit) any other fields such as email, name, etc when using the exact identical Postman configuration. I am an account ADMIN. Can you tell me what I am doing wrong? Below is my…
-
Quiz Submission Questions API Not Returning 'answer' for Multiple Choice Question
I'm trying to gather data on if a student gets a question correct and if not which answer they chose. This is for a quiz with a Quiz Type of 'Practice Quiz'. (Classic Quiz) From what I have read in the API documentation 'answer' should be returned for multiple choice questions. Is there some sort of setting that might be…
-
What id can be used to identify the same user/course through REST API, GraphQL API and LTI Launch?
Hi All, I have been exploring the IDs returned for users and courses through the various access points to data, and I have so far been unable to understand what IDs I can use to uniquely identify the same user for the results of REST API, GraphQL API and LTI Launch. Could someone please point me to the right direction?…
-
What id/info to use to uniquely identify a canvas instance?
Hi All, What information should I use to uniquely identify a canvas instance during an LTI launch? I need to be a 100% sure that the id token received is for a user in a particular school previously registered in my app. From what I have seen so far, the iss in the id_token is always the same (canvas.instructure.com, with…
-
Quiz submissions API returning only the latest attempts
I've been trying to use the submissions API to retrieve all submissions of a quiz. e.g., GET /api/v1/courses/7102/quizzes/1943/submissions The result seem to contain only the latest attempt by each student. In the example above, there are two attempts but only the attempt 2 is in the response. But if I download the…
-
Is there a way to print calendar events?
Can I customize calendar fields? I want to add some extra field or textbox for scheduling purposes and I want to print the entire details in a summary report.
-
Overriding CSS of the Global Navigation links on mobile view of browser
Hello, We are trying to add custom css overrides to Global Navigation links in Mobile/Tablet View of a browser (specifically when the browser hits less than 768px window length). The attached image (global-nav-links-mobile-view.png) is a screenshot of the links in question. However, upon inspecting the HTML, we noticed…
-
How to use the Plyr Video Player in my course on canvas?
I am an instructor using an FFT account and I am looking to incorporate the Plyr custom video player into my course on Canvas. I am using an FFT account and have attempted to use the provided code shown below, however, upon saving it in the HTML editor in canvas, the code is not displayed and has been altered. Can you…
-
Grade passback into Canvas
I'm using the Canvas API Live tool to test passing grades into my course. I've checked the course id, the student id, the assignment id and all check out. However, when I try to udpate the grade using the score endpoint, I keep getting an error with the code: unprocessable_entity I don't know what else to troubleshoot -…
-
JS to determine test/beta/prod environment
I'm starting to dig into building custom JS. Is there a recommended method to determine whether the script is being run from the test, beta, or production environments? Would just checking the page URL be sufficient?