create_wpage: Create page in course

View source: R/pages.R

create_wpageR Documentation

Create page in course

Description

Create page in course

Usage

create_wpage(
  course_id,
  title,
  body,
  editing_roles = "teachers",
  published = FALSE
)

Arguments

course_id

a valid course id

title

a string. The title for the new page.

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).

Value

empty


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