The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
Hello all,
I'm attempting to write a script for the bulk creation of Outcomes in our instance of Canvas. I'm running into a problem and I'm curious if any of you all have a solution. First, I'm using Python 3.4 with the Requests library (which might be the problem for all I know). Here's my question: What is the proper syntax for adding descriptions and point values? I've tried a number of different solutions, but they either throw back internal server errors or something like this:
Here's the code I used for what appears above:
The following code gave me an internal server error:
Am I doing something wrong or is this a limitation of Python/Requests, the API, or both? Thanks in advance for any help you can provide.
Solved! Go to Solution.
Brian,
There is a sample script at https://github.com/kajigga/canvas-contrib/tree/master/API_Examples
called import_outcomes. Check it out, it might help in your troubleshooting.
You will also see several other sample scripts for other cool things you can do in the Canvas API.
I hope this helps!
Brian,
There is a sample script at https://github.com/kajigga/canvas-contrib/tree/master/API_Examples
called import_outcomes. Check it out, it might help in your troubleshooting.
You will also see several other sample scripts for other cool things you can do in the Canvas API.
I hope this helps!
Also check out Re: Import Outcomes to Canvas via CSV or API?
This is awesome. Thank you Deactivated user
Hi I'm new to Canvas API world, but I'm also stuck for the same problem.
Looked up Outcome_import in solution, but I could not find much help there.
Did you find the solution for this? If so, could you let me know?
Community helpTo 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
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.