Activity Feed
- Kudoed Re: Hire an LTI Consultant/Freelancer? for pklove. β02-15-2023 11:06 AM
- Kudoed New Quizzes API is coming to REST for TamasBalogh. β01-03-2023 11:11 AM
- Kudoed Re: What is the least expensive way to get the data from the Canvas Data Portal? for ben_hudson. β08-30-2022 07:35 AM
- Got a Kudo for Re: Stop SIS Import Upload in Beta Environment?. β07-25-2022 09:24 AM
- Kudoed Re: Google App Scripts - URLFetchApp API Endpoint Requests other than GET method for melodyc_lam. β07-12-2022 10:56 AM
- Kudoed Linking Outcomes to Assignments with Python for bbennett2. β04-28-2022 07:18 AM
- Kudoed Supporting with Technology - Our Vision for traci_moes. β04-05-2022 07:50 AM
- Kudoed Re: Current status of New Quizzes API for TamasBalogh. β04-05-2022 07:41 AM
- Kudoed Current status of New Quizzes API for TamasBalogh. β04-05-2022 07:41 AM
- Kudoed Bulk Remove Students Tool (Updated 2/16/22) for chadscott. β03-03-2022 07:10 AM
- Kudoed Re: Rest API Bulk Insert Custom Column Data for natez1. β03-01-2022 10:19 AM
- Kudoed Re: Microsoft Power Apps or other low-code platforms and Canvas for chadscott. β02-24-2022 10:05 AM
- Got a Kudo for Re: Bulk Remove Students Tool. β02-16-2022 10:24 AM
- Kudoed Re: How to know Enrollments done by "Self / API / SIS Import" for James. β01-28-2022 01:22 PM
- Kudoed Custom JS to sort courses on the admin user profile page by active/inactive for lbeveridge. β01-06-2022 02:32 PM
- Got a Kudo for Re: Enroll trust users with SIS ID via API. β12-03-2021 06:16 PM
- Got a Kudo for Re: Enroll trust users with SIS ID via API. β12-03-2021 01:12 PM
- Posted Re: Enroll trust users with SIS ID via API on Canvas Developers Group. β12-03-2021 12:54 PM
- Kudoed More Accessible Default Theme Colors for dlyons. β12-03-2021 11:17 AM
- Kudoed Re: How Many Buttons Is Enough? for dlyons. β12-01-2021 12:44 PM
My Posts
Post Details | Date Published | Views | Kudos |
---|
β12-03-2021
12:54 PM
4 Kudos
Hi @Brandon_Brown
I just made some testing on my end Beta instance and it worked for me using the SIS ID from the user. On my cURL command I use double quote on the Form to send the request. curl https://jedi.beta.instructure.com/api/v1/courses/58794/enrollments -X POST -H "${LMS_JEDI_TOKEN}" -F "enrollment[user_id]=sis_user_id:xcotto" -F "enrollment[type]=StudentEnrollment" -F "enrollment[enrollment_state]=active" -F "enrollment[course_section_id]=61096" -F "enrollment[notify]=false" | json_pp
I hope this helps!
-Xavier πΎ
... View more
β10-22-2021
11:43 AM
3 Kudos
Hi @martin_kabat This JS script works for me when it comes to any href including the /details
$("a[href*='/details']").removeAttr("href");
adding my two cents here lol
-XavierπΎ
... View more
β10-22-2021
10:19 AM
Hi @JeremyWu
If you are trying to get course grades from each student enrollment you can use the "List users in course" endpoint and add the parameters like enrollment_type[] student and include[] enrollments to access their grade information:
"current_grade": "C",
"current_score": 71.63,
"final_grade": "D",
"final_score": 68.44,
"unposted_current_score": 71.63,
"unposted_current_grade": "C",
"unposted_final_score": 68.44,
"unposted_final_grade": "D"
Endpoint example:
/api/v1/courses/canvas_course_id/users?enrollment_state[]=active&enrollment_type[]=student&include[]=enrollments&per_page=100 Best,
-XavierπΎ
... View more
β10-22-2021
09:36 AM
2 Kudos
Hi @CatSimpson
You can abort an SIS import using the API. You need the ID from the SIS Import you want to abort.
// Get the current importing SIS Import //
GET /v1/accounts/{account_id}/sis_imports/importing
// Abort SIS Import //
PUT /v1/accounts/{account_id}/sis_imports/{id}/abort
https://canvas.instructure.com/doc/api/live#!/sis_imports.json/abort_sis_import_put_5 Best,
-XavierπΎ
... View more
β10-20-2021
09:23 AM
Saludos @lagomez
Pudieras compartirme donde lo viste o si tienes alguna captura de pantalla?
-Xavier πΎ
... View more
β09-24-2021
02:23 PM
Awesome!, I'm glad in some way you were able to figure this out π
Happy weekend!,
-XavierπΎ
... View more
β09-24-2021
10:56 AM
Hi @lyleh
instead of using -Body you can use -F or --form. Here is an example and it worked for me.
curl -H 'Authorization: Bearer <token>' -X PUT -F 'course[blueprint]=true' https://canvas.instructure.com/api/v1/courses/58628
I hope this works for you.
-XavierπΎ
... View more
β09-15-2021
09:45 AM
Hi @all,
I found a way to achieve this, is not perfect but all it takes is tweaking some CSS attributes. I prefer using userscript instead of overriding the global CSS in the theme editor, so I'm using this script that I've created (Tampermonkey extension.)
// ==UserScript==
// @name Static Course Menu
// @namespace https://github.com/cotitto/canvas-userscripts
// @version 1.1
// @description Static Course Menu
// @author XCT
// @include https://*.instructure.com/courses/*
// ==/UserScript==
(function() {
'use strict';
$('.with-left-side, #left-side').css('position', 'sticky')
$('.ic-Layout-contentMain').css('margin-top', '-1000px')
$('#left-side').css({"padding-top": "20px", "margin-left": "-200px"});
})();
@jdesiderio I hope this helps in some way. Best,
-Xavier
... View more
β09-15-2021
07:11 AM
3 Kudos
Thanks to you @chadscott for creating these wonderful scripts!, trust me it is a huge time saver π
-Xavier
... View more
β09-14-2021
08:14 AM
2 Kudos
Hi @c_carrillo1
Sure, Make sure is added above this line
})();
here is where I've added the code.
Looks like you have more code lines than I do. Are you using the latest version? Source code: https://github.com/sukotsuchido/CanvasUserScripts/blob/master/Canvas%20Remove%20Student%20Tool.user.js
Let me know if it works for you.
-Xavier
... View more
β09-13-2021
01:33 PM
Hi @all
I notice the same behavior with the tool. Looking thru the usercript, I've added this line of code after 422 row.
$.noConflict(true);
Then I reloaded the page and it worked!, I guess there is a conflict with Canvas Jquery libraries and this userscript. @chadscott
One side note, even with this fix when I click the remove student button it doesn't remove any of them....
Best,
Xavier
... View more