cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ValdeciAraujoJr
Community Member

Create questions containing images using REST API

Hi, folks! I need to insert questions that contain images in the Canvas LMS using its Rest API. I tried to use inlined images, encoded in Base64, inside HTML passed by the parameter 'question_text', but Canvas eliminates the image from the question text during the creation operation. I think it's an LMS security constraint. Please, could someone help me find a way to create questions that contain images using the Canvas API?

Labels (1)
0 Kudos
1 Reply
david_eargle
Community Member

I just successfully created a question using the rest api (specifically, using the canvasapi python repo) with an image by including `<img src="a-url-to-an-externally-hosted-image">` as part of the `question_text` field.