Creates course work. The resulting course work (and corresponding student submissions) areassociated with the Developer Console project of theOAuth client ID used to make the request. Classroom API requests to modify course work and studentsubmissions must be made with an OAuth client ID from the associatedDeveloper Console project.
gc_courses_course_work_create(CourseWork, courseId)
CourseWork | The gc_course_work object to pass to this method |
---|---|
courseId | Identifier of the course |
This method returns the following error codes:
PERMISSION_DENIED
if the requesting user is not permitted to access therequested course, create course work in the requested course, share aDrive attachment, or for access errors.
INVALID_ARGUMENT
if the request is malformed.
NOT_FOUND
if the requested course does not exist.
FAILED_PRECONDITION
for the following request error:
AttachmentNotVisible
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.
Other CourseWork functions:
gc_course_work()
,
gc_courses_course_work_patch()