Updates one or more fields of a course work. See google.classroom.v1.CourseWork for detailsof which fields may be updated and who may change them. This request must be made by the Developer Console project of the OAuth client ID used to create the corresponding course work item.

gc_courses_course_work_patch(CourseWork, courseId, id, updateMask = NULL)

Arguments

CourseWork

The gc_course_work object to pass to this method

courseId

Identifier of the course

id

Identifier of the course work

updateMask

Mask that identifies which fields on the course work to update

Details

This method returns the following error codes:

  • PERMISSION_DENIED if the requesting user is not permitted to access therequested course or course work or for access errors.

  • INVALID_ARGUMENT if the request is malformed.

  • NOT_FOUND if the requested course or course work does not exist.

Authentication scopes used by this function are:

  • https://www.googleapis.com/auth/classroom.coursework.students

Set options(googleAuthR.scopes.selected = c("https://www.googleapis.com/auth/classroom.coursework.students") Then run googleAuthR::gar_auth() to authenticate. See gar_auth for details.

See also