add_enrollments | R Documentation |
Enrolls the given user(s) into the course. If multiple course_ids are given, it should be of the same length as user_id, and each user will be enrolled into the corresponding course.
add_enrollments(
course_id,
user_ids,
type = c("StudentEnrollment", "TeacherEnrollment", "TaEnrollment",
"ObserverEnrollment", "DesignerEnrollment"),
state = c("invited", "active", "inactive"),
section = F,
...
)
course_id |
ID of the course (or section, see below) |
type |
enrollment type |
state |
enrollment state |
section |
if TRUE, course_id should be a section_id instead of a course_id and students will be enrolled into this section |
... |
any other arguments passed to the API |
user_id |
ID of the user |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.