-
Canvas API Access Tokens are not Working
I am using Bitnami Amazon Machine Image of Canvas LMS and tried to access my Canvas LMS with API access token. Tried with the following API route but failed. Can Some one help me with this..?? I have generated the token as shown in the below image. I have used the below route;…
-
422 Error when making POST Request to Favorite Courses API
Hello, I am working some custom Javascript that needs to be able to add and remove favorite courses for users through the Canvas API. I can get the list of a user's favorites without any issues, but I am getting a 422 "unprocessable entity" response when I try to do a POST request to add a favorite course for a user.…
-
Enroll trust users with SIS ID via API
Hello, We are looking for a way to enroll trust users via the API, using their sis_user_id (instead of Canvas user ID). https://community.canvaslms.com/t5/Canvas-Admin-Blog/Trust-Account-User-Roles-and-Expectations/ba-p/246763 On the page above it states: "Trusts do not provide any automation for trust enrollments. Users…
-
Retrieve direct URL for images- how?
This has been frustrating. I've tried URLs of the form: https://canvas.nd.edu/courses/33333/file_content/Public/11111 and https://canvas.nd.edu/api/v1/courses/33333/files/11111 (which I could've sworn worked last week), but I can not find the URL construct (it's not the same as the 2017 post here I found) that works. Any…
-
Getting Delta (changes since last time it was run) for Assignments
Hello All, I am new to Canvas as well as the API world. We are trying to use Canvas API to get the data transferred from Canvas to our product and the plan is to have nightly process. Now to limit the amount of data and improve performance, the thought is to get only the changes that have occurred in canvas since the last…
-
API Showing Grades and Time Activity Time as 0 for some courses despite completion
I have been experiencing and issue when I get enrolments for a student that the Grade/Score and Total activity time are randomly coming back as 0 despite their being plenty of activity and ass Assignments/quizzes being completed. This is not matching what is in Canvas when viewing the student profile. Any Ideas? Out of 16…
-
Graphql query to return enrollments in a known course with a specific status
I can write a query that returns all the enrollments in a known course (see below), but how would you write something that only returned enrollments whose status was "invited"? It should be possible, but I'm banging my head against a brick wall on this. query MyQuery { course(id: "179404") { enrollmentsConnection { nodes {…
-
Environment variables stopped working
We have been using environment variables for our LTI tools for years. Recently, around the beginning of November, the environment variables stopped working, so after the weekly refresh, the tools on beta are pointing to production. Since we haven't updated the xml on production for these tools, it doesn't make sense that…
-
Generate admin token
Im an LTI developer working with the canvas dev site. One of the api calls Im trying to make tells me I dont have the authority to access the resource. How do I generate an admin api token that gives me full access to all the api endpoints? Ive tried generating a new token following this guide but the api still tells me I…
-
Export of list of assigned permissions per role
Hi! I am have been searching for a few days now but have been unable to find a method of exporting a list of course or account roles and there assigned permissions. I have been tasked with analyzing this data to make sure users have the correct access. Any help would be greatly appreciated. Thank you!
-
Internal server error in the canvas
I am working to implement LTI 1.3. When I am launching the LTI link, I am getting the below error: {"errors":[{"message":"An error occurred.","error_code":"internal_server_error"}],"error_report_id":15} undefined method `sign' for nil:NilClass…
-
Using the API call for: Create a single quiz question
Hi everyone, I hopefully have a simple question to ask here about this call. I want to run a creation of quiz questions through a CSV file with this API and I have everything sorted bar how to write the say 4 possible answers to a multiple choice question. I'm using Postman to run the call. If someone has an example that…
-
php CURL 400 bad request
Hi all I'll a newbe to the world of API and graphQL, please be gentle. I'm trying to use the graphQL endpoint with php. this is my code below. I can't use file_get_contents as I have to use CURL to work on our sever. My code is below, when I run this i'm getting 400 Bad request. what is the error in my code? how do I…
-
Deep Linking: resourceId not saved
We're using deep linking to create assignments, and then want to access the line item created later for assignments/grading service. We put the resource like this: resources = [ { "type": "ltiResourceLink", "title": "Test Title", "url": "https://www.our_url.com", "lineItem": { "scoreMaximum": 100, "resourceId":…
-
Using CeLTIc and the Ratings App to create a new LTI
Hi all, I am using the Ratings App example of the CeLTIC LTI library as a base for a project. This has been very helpful, going through the code and all and figuring out what I would need for my simple LTI and such. One thing I am stuck on, though, is where the code defines the placement for the app. The Ratings app in…