-
404 error for deactivating an enrollment.
I am sure this is something easy, but I can not see it. I want to deactivate an enrollment in a class. I am looking at this documentation. DELETE /api/v1/courses/:course_id/enrollments/:id Scope: url:DELETE|/api/v1/courses/:course_id/enrollments/:idConclude, deactivate, or delete an enrollment. If the task argument isn't…
-
LTI 1.3 Get "names_and_roles" does not return all records
-
Get all students for current term
Hello I am trying to get all the students for the current term. I tried to run the SIS export for users, but that did not include their canvas ids. So I thought I would use the api. I get back the approximate number, but none of the students in a class are there. Here is how I did it. First I got the current term like so.…
-
Powershell SIS Import Error
We have successfully used a PowerShell script to zip up a set of csv files and send them to Canvas via the API. Recently (actually it has been an issue for a while but I have been too busy to investigate!), the script has stopped working and I am receiving the following error: Invoke-WebRequest : The underlying connection…
-
Help getting custom JavaScript to work....getting 422 error in console
Can anyone help me figure out why my custom javascript is not working? I have loaded custom CSS and custom JavaScript, and the CSS is working fine, but the JavaScript is being rejected in the browser console with a 422 error. I am doing a simple test in the JavaScript to make sure it works...here is the simple code that…
-
Using the API - I've read it all, but I need a helping hand!!
I'm doing some learning and work on making API calls to Canvas. I'm almost there - I can write the calls in Postman and get json results. Now I need to go over the next hurdle of learning - using python or some other coding language to actually deal with the json data - for example getting it formatted in a CSV, looping…
-
With manually created Users... Password not working
Hi All. So after creating a user via posting to the api within my function.. The user gets created fine. However when I try logging in as that user using the password I generated in my function it is not allowing me to do so. Am I incorrect in assuming I should be able to login with the password I provided within the…
-
Add functionality to flag students in the grade book
I'd like to be able to add flags to students in the gradebook, like "IEP" or "504" or what-have-you.
-
Changing grades at a later date with LTI 1.3
Hi, Using LTI 1.3, is it possible to programatically change grades at a later date? Right now I have: $launch = LTI\LTI_Message_Launch::new(new LTIDatabase()) ->validate(); I then have a student work through an assignment, and then use this object in performing the grade passback within that session. This works great, but…
-
API, CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
Hello, all Ok, I am completely stumped. I have spent hours watching videos, following tutorials, tinkering with both my IIS server, the webconfig file on the IIS server, and my code itself. I have just been spinning my wheels so I come begging for help! I made a webapp using HTML and Javascript making API calls via AJAX.…
-
Multiple assignments from the same LTI 1.3 app
Hi, I've (finally!) been able to successfully perform my first grade passback using LTI 1.3. However, for my particular use case, the app will consist of multiple assignments per course. I thought that I could just create new assignments and each time I launched a new app it would have a different resource id so that the…
-
looking for integration specialists for WordPress/WooCommerce & Canvas on self hosted server
hey folks - it's been awhile since i've posted. i'm an admin of a self run Canvas server for an educational startup and i'd like to integrate it with our WordPress/WooCommerce setup so that students who purchase courses can have IDs created on the server and be enrolled in the appropriate Canvas course. currently i'm…
-
Cannot retrieve min max mean grade object
I am using a student account API token at the moment. I can retrieve all assignment grades with the following request: /v1/courses/${courseID}/assignments` + accessToken + `&include[]=submission I noticed that the Assignment API reference also includes the following statement: score_statisticsAn object containing min, max,…
-
Outcomes API - "Find" Account Outcomes and link to Course via the API
I'm comfortable with the API, but scratching my head a bit about how to make outcomes which are defined at the account level usable at the course level. I think I want to use the import endpoint, but that requires knowing the course root_outcome_group, as well as the source_outcome_group_id I assume I can get those via…
-
How to determine LTI 1.3 login / oauth / authorize / jwks URLs
Hi all, I am finalizing my LTI 1.3 tool implementation, and I am down to one remaining question. During development I hardcoded some Canvas URLs into my configuration: const CANVAS_OIDC_LOGIN_URL = 'https://my-canvas-hostname/api/lti/authorize_redirect'; const CANVAS_OIDC_TOKEN_URL =…