update_wpage: Update/Create page in course

View source: R/pages.R

update_wpageR Documentation

Update/Create page in course

Description

Update/Create page in course

Usage

update_wpage(
  course_id,
  page_url,
  title = NULL,
  body = NULL,
  editing_roles = "teachers",
  published = FALSE,
  notify = FALSE
)

Arguments

course_id

a valid course id

page_url

a valid page url.

title

a string. The title for the new page. NOTE: changing a page's title will change its url. The updated url will be returned in the result.

body

a string The content for the new page.

editing_roles

a string. Which user roles are allowed to edit this page. Any combination of these roles is allowed (separated by commas). Allowed values: teachers, students, members, public

published

a boolean. Whether the page is published (true) or draft state (false).

notify

a boolean. Whether participants should be notified when this page changes.

Value

empty


daranzolin/rcanvas documentation built on May 18, 2024, 2:33 p.m.