Developer Discussions

Discuss, share tips, and ask questions about Developer-related topics.

I just setup my own production-ready instance of CanvasLMS, thankfully all the roadblocks I had, I was able to deal with before ending up here. I was wondering if there was any way to limit the self registration options when enabling that feature for...

  • 0 Likes
  • 1 Replies

Hi devs,    I'm using the open-source, self-hosted version of Canvas LMS installed on a VPS.  When I try to attach a Module to my course calendar using the "Course Link" connection menu, I get this error: An error occurred. Please check your connecti...

Community Member
Canvas Developers Group
  • 0 Likes
  • 0 Replies

Hi everyone,I'm working on a tool that adds a custom button to the Canvas interface using JavaScript injected via a Canvas Theme. The goal is to allow teachers to calculate and update rubric scores for an assignment (e.g., entering an average mastery...

  • 1 Likes
  • 6 Replies

Goal: Given a student's name and email address, I'd like to get them added to a course using the Canvas API and Python. For my purposes, either creating a Canvas account for them or sending them an invitation email to self register would be acceptabl...

  • 0 Likes
  • 6 Replies

Hello, I've put together a script to draw long lists of student page view logs. Its using the pagination rel values as suggested and this was previously working, however I tried it recently and it will start with the first page of results correctly, ...

  • 1 Likes
  • 3 Replies

How do I end the column's HTML code then add a full sentence after? The "/div" code should end it, but when I add text, it continues to be in the columns. Any suggestions?      

  • 0 Likes
  • 3 Replies

I am attempting to answer a Quiz Submission Question with the API.  I'm first trying to answer a multiple choice question. When a user presses on a button to select an answer, the answer is intended to be submitted. I structured my request to be: {"...

  • 0 Likes
  • 2 Replies

Hi,We are using the assignment_view placement option. When enabled for a course, our custom LTI application (lti iframe) is visible on every assignment.However, we don't use our LTI application in every assignment.  With LTI 1.1 we could set the ifra...

Community Member
Canvas Developers Group
  • 0 Likes
  • 0 Replies

Hi everyone,I’m working with an LTI (Learning Tools Interoperability) tool I created and trying to determine whether it can access assignments (lineitems) that were:Created manually within Canvas.Created by another LTI tool.From my understanding, LTI...

  • 0 Likes
  • 1 Replies

Hi everyone, After deleting the developer key through the web interface, it gets successfully deleted, but when I refresh the page, it reappears. I also tried deleting it via the Canvas API using DELETE /api/v1/developer_keys/:id, and the request was...

  • 0 Likes
  • 2 Replies

Is there a feature on Canvas on the Student Profiles to have their student identification number for ease of access for themselves and us as teachers? Thanks in advance,Roxanne

  • 2 Likes
  • 8 Replies

Hi Canvas admin: I just have a question on uploading custom cascading style sheets (CSS) and JavaScript (JS) files on the theme editor page in this article: https://community.canvaslms.com/t5/Admin-Guide/How-do-I-upload-custom-JavaScript-and-CSS-file...

  • 0 Likes
  • 5 Replies

Hi all! BackgroundI'm new to Canvas LMS and working on integrating it with my tool (a knowledge assessment system) to allow students to take tests relevant to their courses.What I'm doingI deployed Canvas in a Docker container and created a new LTI ...

Community Member
Canvas Developers Group
  • 1 Likes
  • 0 Replies

Hi everyone,We’re integrating a self-hosted Canvas back-office with a frontend that fetches data via the API. While developing the authentication system, we encountered an issue with user roles.Our assumption was that each user would have a single, c...

  • 0 Likes
  • 8 Replies

Hi all, I am an admin and Python novice. I am trying to create a script that will pull a user's pageviews within a date range and save that to a CSV file. To date, I have only be able to access the first page of results. I can't seem to get the scrip...

Community Participant
Canvas Developers Group
  • 0 Likes
  • 12 Replies

I'm looking for someone that has some knowledge on building Canvas from github.  We have noticed that it uses outdated node/yarn libraries that have vulnerabilities in them.  Does anyone know anything about building Canvas with updated node/yarn libr...

Community Explorer
Canvas Developers Group
  • 1 Likes
  • 0 Replies

Currently I see that Canvas opens the content selection view as a modal. Can I open it in a new window? Or can I change the height and width of this modal to increase it? 

Community Member
Canvas Developers Group
  • 0 Likes
  • 0 Replies

I am working on an LTI 1.3 integration and having issues figuring out why nothing seems to happen to Deep Link Response items returned from content selection.I am successfully launching the content selection from the drop down in the course_assignmen...

  • 0 Likes
  • 2 Replies

Hello:I have a chat widget thats sourced via iframe. (This is manage-hosted Canvas). I want a behavior similar to the Panda widget icon thats part of this community page.I included the iframe at the bottom of my page content like this: <div><iframe i...

  • 0 Likes
  • 2 Replies

Has anyone else experienced getting non-English words in their response data from the API?It has happened with other fields like name before but it stopped before I could get a copy of the data.  This time it is the pronoun field for users and it loo...

Community Member
Canvas Developers Group
  • 1 Likes
  • 0 Replies

Wondering if anyone knows how to navigate around or has any idea why my iframe slider isn't rendering when I try to view it in the Canvas App (I am on my iPhone but I have tested it in the Teacher and the Student apps). The iframe connects to an .htm...

Community Participant
Canvas Developers Group
  • 0 Likes
  • 0 Replies

Hello, I'm trying to see if there is a way to automatically resize the popup iframe when creating a new assignment and choosing submission type external tool. I was able to make use of postMessage but it seems that using lti.frameResize only works on...

Community Member
Canvas Developers Group
  • 1 Likes
  • 0 Replies

We create IMSCC packages for import into Canvas. These packages contain LTI 1.1 links. We are having a problem whereby an extra non-functioning LTI tool is being created in the Canavs course when these packages are imported. We believe we are structu...

Community Member
Canvas Developers Group
  • 0 Likes
  • 0 Replies

I'd like to know how to generate the PageViews_for_<User>.csv file that you can get when you click on the Download as CSV button. The endpoint is <url>/<user_id>/page_views.csv that I can see in the network tab of my developer tools: I suppose using...

  • 1 Likes
  • 3 Replies

Hi Canvas Community!I'm building CanvasSync, a student-focused web app that makes Canvas easier to use. The goal is to:- Show all courses, assignments, and due dates in a cleaner, more organized dashboard- Make it easier for students to track their w...

  • 2 Likes
  • 3 Replies

I feel like the community will give me a clearer answer than Canvas support.  Our schools is working on integrating Simple Syllabus and we were setting up the API key.  I asked if the Quizzes endpoint included both New Quizzes and Classic Quizzes sin...

  • 1 Likes
  • 2 Replies

I have to create a bunch of messages (like, 1000 custom messages to specific students), and I'm trying to do it with the Canvas API. By way of testing, I'm trying to get it to just create a message to me based on my userID. When I put in the cURL com...

  • 0 Likes
  • 2 Replies

I see how to get the current_score for a student in a course using the api endpoint: /api/v1/courses/{course_id}/enrollments This current_score is for the whole year, but I want the current_score the spring semester only.  How do I filter by the spri...

  • 0 Likes
  • 2 Replies

Greetings,I follow text2qti to create QTI file to upload to Canvas.https://github.com/gpoore/text2qtiI now want to add iframe code to the text question to embed a Youtube videos on the question. Will you provide a minimum working example (MWE)?Thank ...

Community Member
Canvas Developers Group
  • 0 Likes
  • 0 Replies

Hi. I want to change a subaccount's parent account (parent account is another sub-account). My code:         const CANVAS_API_URL = `https://canvas.arsolution.com.tr/api/v1/accounts/${canvasId}`;         const CANVAS_TOKEN = process.env.CANVAS_ADMIN...

  • 1 Likes
  • 1 Replies