-
graphql error querying with user id
Hi I'm having a problem get data for a specific user from the graphql API my graphql query is: query MyQuery($courseID: ID!) { course(id: $courseID) { enrollmentsConnection { nodes { type user(id: $userID) { _id name } } } }}variables are:{"courseID": redacted, "userID": redacted} and the response is: { "errors": [ {…
-
how to set :in_app on graphql query
i've been working all day on the problem described here: https://community.canvaslms.com/t5/Canvas-Developers-Group/Missing-verifier-on-attachment-url-Submissions-graphQL-query/m-p/461456 unfortunately, i'm not a ruby developer, so it's slow going reading the code, but it seems like doing a graphql query with a token is…
-
graphQL documentation
i have found the REST documentation to be quite good, but i haven't found graphQL documentation. it's nice that graphql schema is discoverable, but i'm left with some questions. here are two that i'm struggling with: 1) assigment.submissionsConnection.nodes has both an attachment and attachments field. why both? is there a…
-
Get full list of Canvas Users
I'm working on a project using Python to get our user photos posted as avatars in Canvas. I have it working fine for a small list of users defined in a CSV file on my computer, so that's probably the biggest hurdle. Our user photos are stored as 'SIS_ID.jpg', but to upload the user photos, we have to know the Canvas ID.…
-
Bulk Edit Assignment Due Dates for District Using API
Greetings! Due to issues our district is experiencing with grade sync from Canvas to Infinite Campus, we are planning to move from the daily sync to an "end of the semester" sync for all assignment data. Why? Because we have rolling enrollment for our school or students have a schedule change, we have constantly changing…
-
Resuable JWT with LTI Advantage
Hi, I've (finally) gotten my app to use LTI Advantage in order to pass back grades. After each launch, Canvas sends back a JWT with my library uses to passback the score. I'm currently saving the JWT in my database and using it until another launch and then saving the "updated" JWT to use for the subsequent grade passback.…
-
Posting grades with React app
Hi. I'm attempting to create a basic React app with an Express server and integrate this app as a third party LTI app in Canvas. I'm currently able to send a grade to the gradebook using the ims-lti library linked here. Here's a simplified version of my app and what I want to do. In my Express server, I have the following:…
-
Bad request when posting user against rest api
Hello dev people! I made a post in the regular community, but maybe it belong here? Here's a link to the post: https://community.canvaslms.com/t5/Canvas-Question-Forum/Bad-request-when-posting-user-against-rest-api/m-p/488499#M161621 Regards!
-
What's the deal with changing role_id's
So, I started looking at using API to add and remove enrollments in 2019. At that time, I had mades calls to /api/v1/accounts/86643/roles And found that for us, "id": 1208, "role": "TeacherEnrollment", "label": "Teacher", That project got put on hold, but I'm picking it back up. Today, when I get a teachers enrollment, I…
-
external tool placement
i have an external tool that i would like to have the option of placing next to the course (course placement), not in the course (assignment placement. however it seems i only have the latter option. how do i get more placement options for my tool that other (canvas built in?) external tools have - thanks mark
-
Cannot insert or find any course files
Hi everyone, Have you been in a situation that files are already uploaded but when you want to use it in Page, or Discussion, you cannot import? When I try to insert course files into Page or similar, Canvas always tell me that "Something is wrong". It seems that Canvas cannot find any of my course files. Please help me…
-
Blueprint attribute of GET Course api always returns false
I am trying to mark courses as blueprint courses via the api. I am using Powershell and to start I am using curl do a GET as follows: curl -H @{"Authorization" = "Bearer "} -Method GET "https://canvas.instructure.com/api/v1/courses/" This call always returns blueprint=false. I have tried doing an update via curl curl -H…
-
Data Services for user accounts being merged
Our LTI Tool needs to be able to react to user accounts being merged but I'm not seeing that there is a Data Services event for this. There is a user_updated (https://vumc-camhl.instructure.com/doc/api/file.data_service_canvas_user.html#user_updated) event but this only shows 3 workflow states (deleted, pre_registered,…
-
Canvas REST History API
Hi there, Our group wants to use the History API (https://canvas.instructure.com/doc/api/history.html) to find out the last time the student was active on Canvas. Just wondering if anyone has used this endpoint before, and if yes, how reliable is this endpoint in terms of recording students' activity? Thank you in advance 😀
-
How do I move my data between canvas instances?
Specifically. I have a version of canvas running from July on a debian vm. It's running swell. I have about 20 of my courses in it and they are happy living in that instance. I also have a version of canvas running from 8 days ago (mid-September). I would like all of my content to be moved at once form the July instance to…