-
Getting non-english for the pronoun field when looking up a user via the API
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 looks like Arabic instead of English. This is the data that I get back in the…
-
Iframe Slider not rendering in Canvas App (iOS)
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 .html file, but THAT file--when accessed through the files section--opens in…
-
Resizing iframe when adding external tool
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 the iframe when you open an existing assignment, but not when you are…
-
Help with LTI Tool in IMSCC Cartridge We Created for Canvas Import
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 structuring the file "interoperabilitywebserviceltitool.xml" properly to avoid…
-
User Page Views CSV generation - How Do I get PageViews CSV for a specific date range via API
I'd like to know how to generate the PageViews_for_.csv file that you can get when you click on the Download as CSV button. The endpoint is //page_views.csv that I can see in the network tab of my developer tools: I suppose using a GET request would do the trick but I need to narrow it down to a specific date range. The…
-
How to let students from ANY Canvas school log in to a custom dashboard app?
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 work across multiple classes - Provide a more modern and user-friendly…
-
Canvas New Quizzes/API?
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 since our school is transitioning to use both. Our rep was going to look into…
-
Using cURL and the Conversations API to create messages doesn't work
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 command, it runs to completion, and gives me the created object (including ID…
-
Get current_score for student in a course for spring semester only.
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 spring semester? Essentially, I'm trying to get values in the column in the…
-
embed iframe code in text file to generate QTI file
Greetings, I follow text2qti to create QTI file to upload to Canvas. https://github.com/gpoore/text2qti I 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 you in advance,
-
change subaccount's parent_account with api
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_TOKEN; const data = { account: { name: updatedName, parent_account_id: newParentId } }…
-
Adding elements to an assignment page by editing the DOM with Javascript
Hello All! I've done my best to figure this out using the available resources, but I can't seem to get it to work. I'm attempting to add visual elements around a SCORM object in an assignment (reason: We need to capture whether someone has completed this activity and pass a grade). We have put SCORM objects on other pages…
-
Updating quiz grades
I cannot find a way to update using the Canvas API grades for individual quiz questions. I was able to update the whole quiz grade (using the assignments interface) but wasn't able to make REST calls to update the individual question grades within the quiz. Is it possible to do this through the Canvas API for classic…
-
It is possible to make an API call to pull a xlist report from multiple terms?
I'm making an API call to get the report showing crosslisted courses in Canvas, but I want to restrict the report to terms. It would seem I can do this by using parameters[enrollment_term_id]=XX in my call, but this limits the response to only one term. The campus I'm working with has multiple active terms so I'd like to…
-
Canvas API Email Change Confirmation Issue: Any Solutions?
Canvas API Email Change Confirmation Issue: Any Solutions? I recently created a script that edits users using the Canvas API (https://canvas.instructure.com/doc/api/users.html#method.users.update). The script is pretty straightforward: you insert the user ID and the details you want to change, and it's updated via the API.…