create_assignment: Create assignment

View source: R/simple_functions.R

create_assignmentR Documentation

Create assignment

Description

Create a new assignment in course

Usage

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 Dec. 6, 2024, 2:32 p.m.