I m trying to perform user registrations through API but I always get 400 bad request. I send the mandatory requirements but it doesn't work, attached example
Hello @Furquin
Thank you for contacting the Instructure Community. We're sorry to hear you've been experiencing issues with adding users via API. It looks like your URL may have too many characters and is pretty long. The API call should be relatively short and end like "yourschool.instructure.com/api/v1/sections/:section_id/enrollments. Here is the Canvas guide with specific examples - try to make it match the way it looks here. Additionally, if you are still having issues try some basic troubleshooting steps. Which program are you using to run the API? Are the users already created and you're enrolling them to a course or they're not here yet? Hopefully this helps - let us know if you have any more questions.
https://canvas.instructure.com/doc/api/enrollments.html#method.enrollments_api.create
Thanks for the reply greydon, but the endpoint you gave me is to enroll users in some course, for that I need the user to be already registered in the canvas account because one of the mandatory parameters is precisely the user_id, I wanted to register users in the account of canvas, so you can register it in a course. the application I use to make these requests is insominia. Users would come via API to be registered on the canvas. which is exactly what I can't accomplish. I'm relying on this endpoint to try to regiter.
https://canvas.instructure.com/doc/api/users.html#method.users.create
Hi everyone, I am seeking some insight into how Canvas LMS handles HTTP errors and how they are reflected in the logs versus the user interface. We are currently observing the following behavior in our environment: Log-only errors: We are seeing 500 (Internal Server Error) and 503 (Service Unavailable) errors recorded in…
Hi everyone, If you write integrations against Canvas by Instructure at an institution — K-12, higher ed, corporate training, government, or anywhere in between — we'd love your feedback. We're running a short survey on the Canvas developer experience: APIs, data access, tooling, and documentation. Results will feed into…
I'm currently integrating an LTI tool and attempting to use the Activity.id.history https://canvas.instructure.com/doc/api/file.tools_variable_substitutions.html#activity-id-history variable, but I'm experiencing issues getting it to work properly. What I've Done: Added the Activity.id.history variable to my Developer…
I looked through the LTI Variable Substitutions documentation and while there are variable substitutions available for Canvas.term.name and Canvas.term.id (which is the Canvas incremented ID like "104"), I was surprised to see there was no option for Canvas.term.sisSourceId I tried testing other possible variants that may…
I'm building a tool for my institution that imports grades from another LTI tool into Canvas so instructors can automate late assignment policies not otherwise supported by Canvas. I'm trying to use the LTIv1.3 ID which is readily available on the LTI-side as a link to the student record on Canvas, but I can't find the ID…