-
Enrollment API Questions
I am using Postman to test sending enrollments to Canvas API. I was getting errors at first because I was using the SIS userid and SIS section id for the Post. I got it working using the user_id and course_section_id within Canvas...that are not in my SIS. My questions are: 1. Is there anyway to use the SIS ID's to enroll…
-
Get Instructor Analytics(page_views and participations) via API
Hi, Is there an API to get analytics for Instructor? I tried this api with InstructorId, GET /api/v1/courses/:course_id/analytics/users/:student_id/activity but that did not work, it gives The specified resource does not exist. Whereas for the same course, if I try to pass in a StudentId, then that data is available
-
Live API User Profile - Remove Title
Our institution has disabled changing the user profile via the Canvas UI. As a result our faculty can no longer change their titles when a change is needed. I've been using the Live API to show our faculty admin group how to set a new Title, but so far cannot figure out how to use it to remove the title altogether. Leaving…
-
Are files ever deleted from AWS S3 file storage in a self-hosted Canvas?
Hello, I've setup my self-hosted Canvas installation to use S3 for file storage. I have no issues uploading files to Canvas and having them stored in S3. When I actually delete a file from the Canvas application it seems to be removed without issue. However, when I check the S3 bucket the file still exists. Are these files…
-
Unexpected Error on sis-import (PowerShell)
With the code below attempting to send a zip file to the sis_imports API, I am getting a PowerShell error, "Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send." $URL = "https://$APIDomain/api/v1/accounts/1/sis_imports" $headers = @{"Authorization"="Bearer "+$Token} $InFile =…
-
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…