Create / Import course content and pages with embedded media with the API

Velir
Community Member

Hi!

I am new to Canvas and looking for guidance on importing or creating pages with embedded images.

Going through the documentation the steps I would follow would be:

  • Use the course API to create a course
  • Get the course ID
  • Use the page API to create a page using the course id

What I am not sure how to do. How do I include images in the page HTML that link to the uploaded images/files to canvas?

Do I have to upload all the files/images first and try to get their IDs then start creating the page HTML? but then how do I get the canvas URL for the image or file?

Or Is it recommended to host the images/file externally?

Or is there another way of creating a zip file with files with a specific structure and Canvas can import it?

Thank you!

Labels (1)
0 Likes