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)

Arguments

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

Details

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.

See also