Updates one or more fields of an announcement.
gc_courses_announcements_patch(Announcement, courseId, id, updateMask = NULL)
Announcement | The gc_announcement object to pass to this method |
---|---|
courseId | Identifier of the course |
id | Identifier of the announcement |
updateMask | Mask that identifies which fields on the announcement to update |
This method returns the following error codes:
PERMISSION_DENIED
if the requesting developer project did not createthe corresponding announcement or for access errors.
INVALID_ARGUMENT
if the request is malformed.
FAILED_PRECONDITION
if the requested announcement has already beendeleted.
NOT_FOUND
if the requested course or announcement does not exist
Authentication scopes used by this function are:
https://www.googleapis.com/auth/classroom.announcements
Set options(googleAuthR.scopes.selected = c("https://www.googleapis.com/auth/classroom.announcements")
Then run googleAuthR::gar_auth()
to authenticate.
See gar_auth
for details.
Other Announcement functions:
gc_announcement()
,
gc_courses_announcements_create()