Hi all this is my POST request using Postman to create a quiz question.
https://canvas.instructure.com/api/v1/courses/2775624/quizzes/8044367/questions?"question_type"= "essay_question",&"question_name"= "QuestionOliverTest",
It works, but only creates a "text_only_question" not an essay question?
@OliverKharas
I don't use Postman, but that looks like a messed up request. There are extra quotes and commas that shouldn't be there. But since it's a POST and those parameters are not typically in the query string, I don't know if it's just the way you entered it here or the way it was entered in Postman.
What I'm seeing though is that basically none of your question came through and only the defaults are used.
To create a single quiz question, you need to wrap everything inside a question object.
It's question[question_type]=essay_question, not just question_type=essay_question.
One alternative is to wrap it in a JSON object and then be sure to include the content-type:application/json header. Depending on the language/library you're using, you may need to JSON.stringify that -- with the right settings, Postman can probably do that for you.
{ "question" : { "question_type" : "essay_question", "question_name" : "OliverTest" } }
I like the JSON style when programming because it's easier to work with objects than strings. I like it for illustration purposes because it's easier for people to see the structure.
Rendering bug here: Canvas - Instructure Community Seems to only appear in Edge; fine in Chrome and Firefox https://us.v-cdn.net/6038536/uploads/W3BKB9LY5FCV/recording-2026-04-08-144351.mp4
I have a developer key in our Test instance: How would I use this in a local program to make a REST API call? Looking at https://developerdocs.instructure.com/services/canvas/oauth2/file.developer_keys: Developer keys are OAuth2 client ID and secret pairs stored in Canvas that allow third-party applications to request…
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…
How can one track Canvas Media use without having the reports available from Canvas Studio? Checking API endpoints and the Data 2 schema, there do not seem to be dedicated Canvas Media endpoints. Am I missing some? A method I've considered is using the body field of the wiki_pages table, as this contains the html code of…
Hello, I'm trying to utilize an API call to pull completed certificates and was hoping to download and store the certs as a backup. I can successfully run the API call but it will not allow me to view the certificate unless I access the URL while signed into an account where it's "my" cert. Is there a permissions setting…