update_course_settings: Update course settings

Description Usage Arguments Value Examples

View source: R/simple_functions.R

Description

This functions update the settings of a course.

This functions update the settings of a course.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
update_course_settings(
  course_id,
  allow_student_discussion_topics = NULL,
  allow_student_forum_attachments = NULL,
  allow_student_discussion_editing = NULL,
  allow_student_organized_groups = NULL,
  filter_speed_grader_by_student_group = NULL,
  hide_final_grades = NULL,
  hide_distribution_graphs = NULL,
  lock_all_announcements = NULL,
  restrict_student_past_view = NULL,
  restrict_student_future_view = NULL,
  show_announcements_on_home_page = NULL,
  home_page_announcement_limit = NULL
)

update_course_settings(
  course_id,
  allow_student_discussion_topics = NULL,
  allow_student_forum_attachments = NULL,
  allow_student_discussion_editing = NULL,
  allow_student_organized_groups = NULL,
  filter_speed_grader_by_student_group = NULL,
  hide_final_grades = NULL,
  hide_distribution_graphs = NULL,
  lock_all_announcements = NULL,
  restrict_student_past_view = NULL,
  restrict_student_future_view = NULL,
  show_announcements_on_home_page = NULL,
  home_page_announcement_limit = NULL
)

Arguments

course_id

the canvas id of the course (integer)

allow_student_discussion_topics

allow students to create discussion topics (boolean)

allow_student_forum_attachments

allow students to attach files to forums (boolean)

allow_student_discussion_editing

allow students to edit discussions (boolean)

allow_student_organized_groups

allow students to create organize groups (boolean)

filter_speed_grader_by_student_group

filter speed graders by student group (boolean)

hide_final_grades

hide grade totals from students (boolean)

restrict_student_past_view

Restrict students from viewing courses after end date (boolean)

restrict_student_future_view

Restrict students from viewing courses before start date (boolean)

show_announcements_on_home_page

show announcements on homepage (boolean)

home_page_announcement_limit

set announcements limit on homepage announcements (integer)

Value

server response. Either 200 status code if everything went correctly or a specific http status warning.

server response. Either 200 status code if everything went correctly or a specific http status warning.

Examples

1
2
3
update_course_settings(6348, hide_final_grades = T, hide_distribution_graphs = T)

update_course_settings(6348, hide_final_grades = T, hide_distribution_graphs = T)

ICTO-FMG/uvacanvas documentation built on Jan. 24, 2022, 5:16 a.m.