Creates a course
gc_courses_create(Course)
Course | The gc_course object to pass to this method |
---|
The user specified in ownerId
is the owner of the created courseand added as a teacher.
This method returns the following error codes:
PERMISSION_DENIED
if the requesting user is not permitted to createcourses or for access errors.
NOT_FOUND
if the primary teacher is not a valid user.
FAILED_PRECONDITION
if the course owner's account is disabled or forthe following request errors:
UserGroupsMembershipLimitReached
ALREADY_EXISTS
if an alias was specified in the id
andalready exists.
Authentication scopes used by this function are:
https://www.googleapis.com/auth/classroom.courses
Set options(googleAuthR.scopes.selected = c("https://www.googleapis.com/auth/classroom.courses")
Then run googleAuthR::gar_auth()
to authenticate.
See gar_auth
for details.
Other Course functions:
gc_courses_patch()
,
gc_courses_update()
,
gc_course()