-
Using the "List account admins" endpoint with a custom admin role
Hi There, I am a developer for an application which utilizes Canvas' REST APIs to get data related to users, user roles, course enrollments, etc. The focus of this post is to try and see if one of the available endpoints to detect admin roles would work with custom admin roles. Here is the scenario: I use the "List account…
-
Getting a "Text only question" when using API to create quiz questions
I've been at this for the past 5 hours... I'm trying to upload questions from a JSON file to Canvas via Canvas' API, but all I can get is a blank, dummy-placeholder question. I am using cURL. Below is my JSON, cURL command, and output. What am I doing wrong!? { "question": { "question_name": "Question 1", "question_text":…
-
Creating links using the Canvas API that will work on the Canvas app
Hi there, I'm trying to create links to pages which are listed in the Modules page in Canvas. I'm using the API to get a list of module items (/api/v1/courses/:course_id/modules/:module_id/items) but I'm finding that the html_url link listed in the app does not work in the Canvas app - it takes students to the modules page…
-
The settings gear icon on a video opens "Source Chooser," rather than settings
I activated and published closed captions on my videos. But for one video, the settings icon displays "Source Chooser" as its title when I hover over it with a mouse and only gives the option to show the speed of the video, not closed captions. What did I do wrong on this one? See the image below of what shows when someone…
-
Enrollments API list order, recent change from sortable_name to ???
Good Morning, Basically forever, this particular API call would return users in order by their sortable name https://usflearn.instructure.com/api/v1/courses/sis_course_id:EVR2001.003U21/enrollments?role=StudentEnrollment However, within the last few days, this API call is now returning the users in a seemingly arbitrary…
-
Getting the roles available in a course?
Is there a way of getting the roles available in a course? I don't need all the permissions that each role has, just the roles that are available. You can a list of roles for an account, but most of our users in a course don't have access the account that contains the course and so can't use the account API endpoint…
-
Cannot launch LTI 1.3. assignments in IFrame: Canvas auth cookies are blocked
I am using Google Chrome > 91. When I set up Canvas as an LTI 1.3 platform and try to launch LTI tools inside an IFrame, the LTI launch fails with error: login_required and error_description: Must have an active user session. The error is a response toauthorize_redirect/calls, part of the LTI 1.3. OIDC authentication flow.…
-
Does anyone have a list of the views where JS and CSS overrides are loaded in the apps?
Basically the title, id like to know if anyone has handy a list of all of the views where the custom theme based JS and CSS files are loaded in the apps. This would help us in knowing the scope for customisations in the app and better help us support customisations in both the browser and mobile environments. My current…
-
Word Count Feature in SpeedGrader (Feedback and Testing Support Requested)
Hello everyone, This is my first time learning about MutationObservers and I saw there was a feature request for a word count in SpeedGrader. So for a weekend project, I decided to give it an initial attempt. I know the code can be cleaned up more, but this is an initial prototype. Please let me know your thoughts about…
-
Is there a way to launch an LTI Tool within the Users account profile?
We would like to add an LTI Placement link to the right side of a users profile. For example, if you go to canvasdomain.com/accounts/1/users/33 you'll see something like the below screenshot. I've marked with a red box the location where we would want to add a link to launch our tool Is there a placement for this and I'm…
-
LTI External Tool - where to get iframe return url without losing LTI Data
I am a developer trying to implement the LTI integrations with our web application. I am a system admin in canvas but am using it like a teacher. I have successfully implemented the LTI return type `lti_launch_url` with my LTI app, but I'm struggling to figure out the proper way to embed an `iframe` without losing the LTI…
-
How do I implement SSO integration in my web app?
I have to integrate CANVAS Integration for SSO The process will be, users can start on my web/app and click a "Sign In With Canvas" button. CANVAS will then prompt the user for their username and password. After the user has signed into CANVAS, they are redirected back to your website with the user details. I am calling…
-
Create a Quiz Question
Hi all this is my POST request using Postman to create a quiz question. https://canvas.instructure.com/api/v1/courses/2775624/quizzes/8044367/questions?"question_type"= "essay_question",&"question_name"= "QuestionOliverTest", It works, but only creates a "text_only_question" not an essay question?
-
Using Python canvasapi module to find who hasn’t submitted assignment
Hello, everybody, Introduction: My school requires us teachers to send out emails to parents and fill out a Google form when a student doesn’t turn in their homework. Naturally, I’ve been using Python to stream line this process to save myself time. What I’ve been doing for the past year is downloading the grade book from…
-
Maintaining LTI connection when reloading tool
Hello, I am the Canvas LMS Manager for my school district and I know PHP and MySQL but have just started dabbling in building LTI tools. I recently forked the Basic LTI Tutorial Using PHP and was pretty excited to get some basic tools to embed into Canvas and be able to use the Users information. They were fairly…