AnsweredAssumed Answered

wikipage manipulation using API

Question asked by don balbieran on Nov 7, 2017
Latest reply on Nov 7, 2017 by don balbieran


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!



Peter Love, have you done anything like this before?  Thanks!

I have Thonny and Powershell.