create_section_in_course: Create a section in a course

Description Usage Arguments Value Examples

View source: R/simple_functions.R

Description

This function creates a section in a Canvas course

This function creates a section in a Canvas course

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
create_section_in_course(
  course_id,
  name,
  sis_section_id = NULL,
  integration_id = NULL,
  start_at = NULL,
  end_at = NULL,
  restrict_enrollments_to_section_dates = NULL,
  enable_sis_reactivation = NULL
)

create_section_in_course(
  course_id,
  name,
  sis_section_id = NULL,
  integration_id = NULL,
  start_at = NULL,
  end_at = NULL,
  restrict_enrollments_to_section_dates = NULL,
  enable_sis_reactivation = NULL
)

Arguments

course_id

the canvas id of the course (integer)

name

the name of the section (string/character)

sis_section_id

the sis id of the section (integer)

integration_id
start_at

start date of the section

end_at

end date of the section

restrict_enrollments_to_section_dates

restrict enrollments to a specific date

enable_sis_reactivation

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
create_section_in_course(course_id = 6824, name = "Werkgroep_1")

create_section_in_course(course_id = 6824, name = "Werkgroep_1")

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