create_assignment: Create assignment

Description Usage Arguments Value

View source: R/simple_functions.R

Description

Create a new assignment in course

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
create_assignment(
  course_id,
  assignment_name,
  position = NULL,
  submission_type = "none",
  notify_of_update = F,
  points_possible = 10,
  grading_type = "points",
  published = F
)

Arguments

course_id

canvas id of the course (integer)

assignment_name

name of the assignment (string)

position

position of the assignment in the list of assignments. Default to 0 -> end of the list (integer)

submission_type

online_quiz/none/on_paper/discussion_topic/external_tool (string)

notify_of_update

notifies student of changes if TRUE (boolean)

points_possible

max points possible, default is 10 (integer)

grading_type

pass_fail/percent/letter_grade/gpa_scale/points/not_graded (string)

published

is the assignment published, default is False (boolean)

Value

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


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