Updates one or more fields in a course.This method returns the following error codes:
PERMISSION_DENIED
if the requesting user is not permitted to modify therequested course or for access errors.
NOT_FOUND
if no course exists with the requested ID.
INVALID_ARGUMENT
if invalid fields are specified in the update mask orif no update mask is supplied.
FAILED_PRECONDITION
for the following request errors:
CourseNotModifiable
gc_courses_patch(Course, id, updateMask = NULL)
Course | The gc_course object to pass to this method |
---|---|
id | Identifier of the course to update |
updateMask | Mask that identifies which fields on the course to update |
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_create()
,
gc_courses_update()
,
gc_course()