wikipage manipulation using API

Jump to solution
dbalbieran
Community Novice

Hi,

A lot of what we do is import contents from previously offered courses. As you know what this does to wikipages

is that it keeps the existing ones (from the shell) and copied over the ones from the source course and renames

them with a -2 ( and son on).

Could you point me to the correct API to use if I want to:

1. Delete the existing wikipage eg. "About this course"

2. Rename the newly copied "About this course-2" to "About this course"

3. Recurse for all pages with duplicates

Any leads or template will be greatly appreciated. Thanks!

#wikipage

pklove‌, have you done anything like this before?  Thanks!

I have Thonny and Powershell.

1 Solution
pklove
Community Champion

I think the Page endpoints  (Pages - Canvas LMS REST API Documentation) are what you need to use.  They will let you list the pages, update and delete them.

View solution in original post