R/classroom_functions.R
gc_courses_course_work_student_submissions_modify_attachments.Rd
Modifies attachments of student submission. Attachments may only be added to student submissions belonging to
coursework objects with a workType
of ASSIGNMENT
. This request must be made by the Developer Console
project of the OAuth client ID used tocreate the corresponding
course work item.
gc_courses_course_work_student_submissions_modify_attachments( ModifyAttachmentsRequest, courseId, courseWorkId, id )
ModifyAttachmentsRequest | The gc_modify_attachments_request object to pass to this method |
---|---|
courseId | Identifier of the course |
courseWorkId | Identifier of the course work |
id | Identifier of the student submission |
This method returns the following error codes:
PERMISSION_DENIED
if the requesting user is not permitted to access therequested course or course work, if the user is not permitted to modifyattachments on the requested student submission, or foraccess errors.
INVALID_ARGUMENT
if the request is malformed.
NOT_FOUND
if the requested course, course work, or student submissiondoes not exist.
Authentication scopes used by this function are:
https://www.googleapis.com/auth/classroom.coursework.me
https://www.googleapis.com/auth/classroom.coursework.students
Set options(googleAuthR.scopes.selected = c("https://www.googleapis.com/auth/classroom.coursework.me", "https://www.googleapis.com/auth/classroom.coursework.students")
Then run googleAuthR::gar_auth()
to authenticate.
See gar_auth
for details.
Other ModifyAttachmentsRequest functions:
gc_modify_attachments_request()