Skip to contents

Create a quiz at a course

Usage

create_quiz(
  course_id = NULL,
  quiz_title = NULL,
  quiz_description = NULL,
  topic_id = NULL,
  coursework_title = "none",
  work_type = "ASSIGNMENT",
  due_date = NULL,
  assignment_description = ""
)

Arguments

course_id

A course id where the quiz should be created

quiz_title

A string indicating the title for the quiz

quiz_description

A description for the quiz that will be made

topic_id

Optional - a topic Id where the quiz will be posted

coursework_title

a string that will be what the coursework title

work_type

Currently only supported work type is ASSIGNMENT.

due_date

A due date for this quiz, in year-month-day format

assignment_description

The description that will be given for the assignment

Examples

if (FALSE) {

course_id <- get_course_list()$courses$id[1]
topic_id <- get_topic_list(course_id)$topic$topicId[1]

create_quiz(course_id,
  quiz_title = "new quiz", quiz_description = "This is a great quiz",
  topic_id = topic_id, due_date = "2025-12-1"
)
}