Description Usage Arguments Value
View source: R/simple_functions.R
Create a new assignment in course
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
)
|
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) |
server response. Either 201 status code if everything went correctly or a specific http status warning.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.