Leading through Chaos - Insights and Actions • Browse the resources from the keynote presented by the Academic Strategy Team.
Found this content helpful? Log in or sign up to leave a like!
I'm using the ID from a teacher trial account to make the endpoint POST (/api/v1/accounts/:account_id/courses) and when I attempt to create a new course, everything looks to work but I'm not seeing the course being created. Anyone know if the API POST's will work with a trial account?
Solved! Go to Solution.
When you create the course via the API, are you also including the "Enroll_me":"true" parameter when creating your course via the API? If you do not include that parameter, then there is nothing to link you to the course after you have created it...
Hi @EdKane
Are you getting a course object back when you run the API, as described in https://canvas.instructure.com/doc/api/courses.html#method.courses.create ?
That would be the biggest clue indicating whether or not it was working.
One thing to consider is that the API will create a new course, but it will not enroll you in the course. So, you would not see it listed with your courses, even if it was successfully created.
I'm also getting the same problem where I create the course but it does not shows into my dashboard. The main reason that I found is that the created course must me enrolled as a teacher.
If you have found the solution, please share with me
That makes sense, since creating a course and enrolling a user are really separate operations.
I wonder if you could use the "enroll a user" API (https://canvas.instructure.com/doc/api/enrollments.html#method.enrollments_api.create ) with the course_id that is returned by the "create course" API to enroll yourself in the course?
I am also facing the same issue with a free tier Teacher account.
It is a weird issue with the Canvas LMS API that's blocking our course-creation workflow. Hoping someone has seen this before.
What's happening:
The course also doesn't show up in our "get all courses" calls or in the Canvas UI dashboard. It's like the API says "yep, created!" but then the course vanishes into thin air.
Additional weirdness: Even when I try to enroll my user via /api/v1/courses/{course_id}/enrollments using the course ID from the 201 response, I'm getting a 403 Forbidden error.
When you create the course via the API, are you also including the "Enroll_me":"true" parameter when creating your course via the API? If you do not include that parameter, then there is nothing to link you to the course after you have created it...
To interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in