Register for InstructureCon25 • Passes include access to all sessions, the expo hall, entertainment and networking events, meals, and extraterrestrial encounters.
Found this content helpful? Log in or sign up to leave a like!
I need a way to get the value of "can create, rename, and edit course pages by default" from the course settings page via a Canvas API. I understand it maps to allow_student_wiki_edits from the course object; there is a way to set this value using the Course POST or Course PUT, but there isn't a way to read it.
I am happy with any programmatic solution, including Canvas GraphQL API.
There is no .json view for the course settings page.
This property is also not available in the /course/:id/settings API.
Course Settings page refers to it as default_wiki_editing_roles, which is also not a thing in any APIs.
Thanks
Doug
Solved! Go to Solution.
I couldn't find it either, but one workaround seems to be creating a new page only specifying a title.
Then you can check that page object's JSON which lists, under "editing_roles", who has access to edit that page.
I couldn't find it either, but one workaround seems to be creating a new page only specifying a title.
Then you can check that page object's JSON which lists, under "editing_roles", who has access to edit that page.
@Gabriel33, that's brilliant!
To elaborate on the workaround that @Gabriel33 suggested.
When creating a new page, there is an option to set who can edit it, and it will default to the current course setting.
The values are:
The last one maps to "Anyone" in the UI.
To know the "current" course setting, we will have to create a new page to be sure.
To interact with Panda Bot in the Instructure Community, you need to sign up or log in:
Sign In