@datafire/google_classroom v6.0.0
@datafire/google_classroom
Client library for Google Classroom API
Installation and Usage
npm install --save @datafire/google_classroom
let google_classroom = require('@datafire/google_classroom').create({
access_token: "",
refresh_token: "",
client_id: "",
client_secret: "",
redirect_uri: ""
});
.then(data => {
console.log(data);
});
Description
Manages classes, rosters, and invitations in Google Classroom.
Actions
oauthCallback
Exchange the code passed to your redirect URI for an access_token
google_classroom.oauthCallback({
"code": ""
}, context)
Input
- input
object
- code required
string
- code required
Output
- output
object
- access_token
string
- refresh_token
string
- token_type
string
- scope
string
- expiration
string
- access_token
oauthRefresh
Exchange a refresh_token for an access_token
google_classroom.oauthRefresh(null, context)
Input
This action has no parameters
Output
- output
object
- access_token
string
- refresh_token
string
- token_type
string
- scope
string
- expiration
string
- access_token
classroom.courses.list
Returns a list of courses that the requesting user is permitted to view, restricted to those that match the request. Returned courses are ordered by creation time, with the most recently created coming first. This method returns the following error codes: PERMISSION_DENIED
for access errors. INVALID_ARGUMENT
if the query argument is malformed. * NOT_FOUND
if any users specified in the query arguments do not exist.
google_classroom.classroom.courses.list({}, context)
Input
- input
object
- courseStates
array
: Restricts returned courses to those in one of the specified states The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED. - pageSize
integer
: Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results. - pageToken
string
: nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token. - studentId
string
: Restricts returned courses to those having a student with the specified identifier. The identifier can be one of the following: the numeric identifier for the user the email address of the user * the string literal"me"
, indicating the requesting user - teacherId
string
: Restricts returned courses to those having a teacher with the specified identifier. The identifier can be one of the following: the numeric identifier for the user the email address of the user * the string literal"me"
, indicating the requesting user - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseStates
Output
- output ListCoursesResponse
classroom.courses.create
Creates a course. The user specified in ownerId
is the owner of the created course and added as a teacher. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to create courses or for access errors. NOT_FOUND
if the primary teacher is not a valid user. FAILED_PRECONDITION
if the course owner's account is disabled or for the following request errors: UserGroupsMembershipLimitReached * ALREADY_EXISTS
if an alias was specified in the id
and already exists.
google_classroom.classroom.courses.create({}, context)
Input
- input
object
- body Course
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
Output
- output Course
classroom.courses.aliases.list
Returns a list of aliases for a course. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to access the course or for access errors. NOT_FOUND
if the course does not exist.
google_classroom.classroom.courses.aliases.list({
"courseId": ""
}, context)
Input
- input
object
- courseId required
string
: The identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - pageSize
integer
: Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results. - pageToken
string
: nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output ListCourseAliasesResponse
classroom.courses.aliases.create
Creates an alias for a course. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to create the alias or for access errors. NOT_FOUND
if the course does not exist. ALREADY_EXISTS
if the alias already exists. FAILED_PRECONDITION
if the alias requested does not make sense for the requesting user or course (for example, if a user not in a domain attempts to access a domain-scoped alias).
google_classroom.classroom.courses.aliases.create({
"courseId": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course to alias. This identifier can be either the Classroom-assigned identifier or an alias. - body CourseAlias
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output CourseAlias
classroom.courses.aliases.delete
Deletes an alias of a course. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to remove the alias or for access errors. NOT_FOUND
if the alias does not exist. * FAILED_PRECONDITION
if the alias requested does not make sense for the requesting user or course (for example, if a user not in a domain attempts to delete a domain-scoped alias).
google_classroom.classroom.courses.aliases.delete({
"courseId": "",
"alias": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course whose alias should be deleted. This identifier can be either the Classroom-assigned identifier or an alias. - alias required
string
: Alias to delete. This may not be the Classroom-assigned identifier. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output Empty
classroom.courses.announcements.list
Returns a list of announcements that the requester is permitted to view. Course students may only view PUBLISHED
announcements. Course teachers and domain administrators may view all announcements. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to access the requested course or for access errors. INVALID_ARGUMENT
if the request is malformed. * NOT_FOUND
if the requested course does not exist.
google_classroom.classroom.courses.announcements.list({
"courseId": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - announcementStates
array
: Restriction on thestate
of announcements returned. If this argument is left unspecified, the default value isPUBLISHED
. - orderBy
string
: Optional sort ordering for results. A comma-separated list of fields with an optional sort direction keyword. Supported field isupdateTime
. Supported direction keywords areasc
anddesc
. If not specified,updateTime desc
is the default behavior. Examples:updateTime asc
,updateTime
- pageSize
integer
: Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results. - pageToken
string
: nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output ListAnnouncementsResponse
classroom.courses.announcements.create
Creates an announcement. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to access the requested course, create announcements in the requested course, share a Drive 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
google_classroom.classroom.courses.announcements.create({
"courseId": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - body Announcement
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output Announcement
classroom.courses.announcements.delete
Deletes an announcement. This request must be made by the Developer Console project of the OAuth client ID used to create the corresponding announcement item. This method returns the following error codes: PERMISSION_DENIED
if the requesting developer project did not create the corresponding announcement, if the requesting user is not permitted to delete the requested course or for access errors. FAILED_PRECONDITION
if the requested announcement has already been deleted. * NOT_FOUND
if no course exists with the requested ID.
google_classroom.classroom.courses.announcements.delete({
"courseId": "",
"id": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - id required
string
: Identifier of the announcement to delete. This identifier is a Classroom-assigned identifier. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output Empty
classroom.courses.announcements.get
Returns an announcement. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to access the requested course or announcement, or for access errors. INVALID_ARGUMENT
if the request is malformed. * NOT_FOUND
if the requested course or announcement does not exist.
google_classroom.classroom.courses.announcements.get({
"courseId": "",
"id": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - id required
string
: Identifier of the announcement. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output Announcement
classroom.courses.announcements.patch
Updates one or more fields of an announcement. This method returns the following error codes: PERMISSION_DENIED
if the requesting developer project did not create the corresponding announcement or for access errors. INVALID_ARGUMENT
if the request is malformed. FAILED_PRECONDITION
if the requested announcement has already been deleted. NOT_FOUND
if the requested course or announcement does not exist
google_classroom.classroom.courses.announcements.patch({
"courseId": "",
"id": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - id required
string
: Identifier of the announcement. - updateMask
string
: Mask that identifies which fields on the announcement to update. This field is required to do an update. The update fails if invalid fields are specified. If a field supports empty values, it can be cleared by specifying it in the update mask and not in the Announcement object. If a field that does not support empty values is included in the update mask and not set in the Announcement object, anINVALID_ARGUMENT
error is returned. The following fields may be specified by teachers:text
state
*scheduled_time
- body Announcement
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output Announcement
classroom.courses.announcements.modifyAssignees
Modifies assignee mode and options of an announcement. Only a teacher of the course that contains the announcement may call this method. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to access the requested 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.
google_classroom.classroom.courses.announcements.modifyAssignees({
"courseId": "",
"id": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - id required
string
: Identifier of the announcement. - body ModifyAnnouncementAssigneesRequest
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output Announcement
classroom.courses.courseWork.list
Returns a list of course work that the requester is permitted to view. Course students may only view PUBLISHED
course work. Course teachers and domain administrators may view all course work. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to access the requested course or for access errors. INVALID_ARGUMENT
if the request is malformed. * NOT_FOUND
if the requested course does not exist.
google_classroom.classroom.courses.courseWork.list({
"courseId": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - courseWorkStates
array
: Restriction on the work status to return. Only courseWork that matches is returned. If unspecified, items with a work status ofPUBLISHED
is returned. - orderBy
string
: Optional sort ordering for results. A comma-separated list of fields with an optional sort direction keyword. Supported fields areupdateTime
anddueDate
. Supported direction keywords areasc
anddesc
. If not specified,updateTime desc
is the default behavior. Examples:dueDate asc,updateTime desc
,updateTime,dueDate desc
- pageSize
integer
: Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results. - pageToken
string
: nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output ListCourseWorkResponse
classroom.courses.courseWork.create
Creates course work. The resulting course work (and corresponding student submissions) are associated with the Developer Console project of the OAuth client ID used to make the request. Classroom API requests to modify course work and student submissions must be made with an OAuth client ID from the associated Developer Console project. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to access the requested course, create course work in the requested course, share a Drive 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
google_classroom.classroom.courses.courseWork.create({
"courseId": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - body CourseWork
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output CourseWork
classroom.courses.courseWork.studentSubmissions.list
Returns a list of student submissions that the requester is permitted to view, factoring in the OAuth scopes of the request. -
may be specified as the course_work_id
to include student submissions for multiple course work items. Course students may only view their own work. Course teachers and domain administrators may view all student submissions. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to access the requested course or course work, or for access errors. INVALID_ARGUMENT
if the request is malformed. * NOT_FOUND
if the requested course does not exist.
google_classroom.classroom.courses.courseWork.studentSubmissions.list({
"courseId": "",
"courseWorkId": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - courseWorkId required
string
: Identifier of the student work to request. This may be set to the string literal"-"
to request student work for all course work in the specified course. - late
string
(values: LATE_VALUES_UNSPECIFIED, LATE_ONLY, NOT_LATE_ONLY): Requested lateness value. If specified, returned student submissions are restricted by the requested value. If unspecified, submissions are returned regardless oflate
value. - pageSize
integer
: Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results. - pageToken
string
: nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token. - states
array
: Requested submission states. If specified, returned student submissions match one of the specified submission states. - userId
string
: Optional argument to restrict returned student work to those owned by the student with the specified identifier. The identifier can be one of the following: the numeric identifier for the user the email address of the user * the string literal"me"
, indicating the requesting user - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
classroom.courses.courseWork.studentSubmissions.get
Returns a student submission. PERMISSION_DENIED
if the requesting user is not permitted to access the requested course, course work, or student submission or for access errors. INVALID_ARGUMENT
if the request is malformed. * NOT_FOUND
if the requested course, course work, or student submission does not exist.
google_classroom.classroom.courses.courseWork.studentSubmissions.get({
"courseId": "",
"courseWorkId": "",
"id": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - courseWorkId required
string
: Identifier of the course work. - id required
string
: Identifier of the student submission. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output StudentSubmission
classroom.courses.courseWork.studentSubmissions.patch
Updates one or more fields of a student submission. See google.classroom.v1.StudentSubmission for details of 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. This method returns the following error codes: PERMISSION_DENIED
if the requesting developer project did not create the corresponding course work, if the user is not permitted to make the requested modification to the student submission, or for access errors. INVALID_ARGUMENT
if the request is malformed. * NOT_FOUND
if the requested course, course work, or student submission does not exist.
google_classroom.classroom.courses.courseWork.studentSubmissions.patch({
"courseId": "",
"courseWorkId": "",
"id": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - courseWorkId required
string
: Identifier of the course work. - id required
string
: Identifier of the student submission. - updateMask
string
: Mask that identifies which fields on the student submission to update. This field is required to do an update. The update fails if invalid fields are specified. The following fields may be specified by teachers:draft_grade
assigned_grade
- body StudentSubmission
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output StudentSubmission
classroom.courses.courseWork.studentSubmissions.modifyAttachments
Modifies attachments of student submission. Attachments may only be added to student submissions belonging to course work objects with a workType
of ASSIGNMENT
. This request must be made by the Developer Console project of the OAuth client ID used to create the corresponding course work item. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to access the requested course or course work, if the user is not permitted to modify attachments on the requested student submission, or for access errors. INVALID_ARGUMENT
if the request is malformed. * NOT_FOUND
if the requested course, course work, or student submission does not exist.
google_classroom.classroom.courses.courseWork.studentSubmissions.modifyAttachments({
"courseId": "",
"courseWorkId": "",
"id": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - courseWorkId required
string
: Identifier of the course work. - id required
string
: Identifier of the student submission. - body ModifyAttachmentsRequest
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output StudentSubmission
classroom.courses.courseWork.studentSubmissions.reclaim
Reclaims a student submission on behalf of the student that owns it. Reclaiming a student submission transfers ownership of attached Drive files to the student and updates the submission state. Only the student that owns the requested student submission may call this method, and only for a student submission that has been turned in. This request must be made by the Developer Console project of the OAuth client ID used to create the corresponding course work item. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to access the requested course or course work, unsubmit the requested student submission, or for access errors. FAILED_PRECONDITION
if the student submission has not been turned in. INVALID_ARGUMENT
if the request is malformed. NOT_FOUND
if the requested course, course work, or student submission does not exist.
google_classroom.classroom.courses.courseWork.studentSubmissions.reclaim({
"courseId": "",
"courseWorkId": "",
"id": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - courseWorkId required
string
: Identifier of the course work. - id required
string
: Identifier of the student submission. - body ReclaimStudentSubmissionRequest
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output Empty
classroom.courses.courseWork.studentSubmissions.return
Returns a student submission. Returning a student submission transfers ownership of attached Drive files to the student and may also update the submission state. Unlike the Classroom application, returning a student submission does not set assignedGrade to the draftGrade value. Only a teacher of the course that contains the requested student submission may call this method. This request must be made by the Developer Console project of the OAuth client ID used to create the corresponding course work item. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to access the requested course or course work, return the requested student submission, or for access errors. INVALID_ARGUMENT
if the request is malformed. * NOT_FOUND
if the requested course, course work, or student submission does not exist.
google_classroom.classroom.courses.courseWork.studentSubmissions.return({
"courseId": "",
"courseWorkId": "",
"id": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - courseWorkId required
string
: Identifier of the course work. - id required
string
: Identifier of the student submission. - body ReturnStudentSubmissionRequest
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output Empty
classroom.courses.courseWork.studentSubmissions.turnIn
Turns in a student submission. Turning in a student submission transfers ownership of attached Drive files to the teacher and may also update the submission state. This may only be called by the student that owns the specified student submission. This request must be made by the Developer Console project of the OAuth client ID used to create the corresponding course work item. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to access the requested course or course work, turn in the requested student submission, or for access errors. INVALID_ARGUMENT
if the request is malformed. * NOT_FOUND
if the requested course, course work, or student submission does not exist.
google_classroom.classroom.courses.courseWork.studentSubmissions.turnIn({
"courseId": "",
"courseWorkId": "",
"id": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - courseWorkId required
string
: Identifier of the course work. - id required
string
: Identifier of the student submission. - body TurnInStudentSubmissionRequest
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output Empty
classroom.courses.courseWork.delete
Deletes a course work. This request must be made by the Developer Console project of the OAuth client ID used to create the corresponding course work item. This method returns the following error codes: PERMISSION_DENIED
if the requesting developer project did not create the corresponding course work, if the requesting user is not permitted to delete the requested course or for access errors. FAILED_PRECONDITION
if the requested course work has already been deleted. * NOT_FOUND
if no course exists with the requested ID.
google_classroom.classroom.courses.courseWork.delete({
"courseId": "",
"id": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - id required
string
: Identifier of the course work to delete. This identifier is a Classroom-assigned identifier. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output Empty
classroom.courses.courseWork.get
Returns course work. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to access the requested 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.
google_classroom.classroom.courses.courseWork.get({
"courseId": "",
"id": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - id required
string
: Identifier of the course work. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output CourseWork
classroom.courses.courseWork.patch
Updates one or more fields of a course work. See google.classroom.v1.CourseWork for details of 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. This method returns the following error codes: PERMISSION_DENIED
if the requesting developer project did not create the corresponding course work, if the user is not permitted to make the requested modification to the student submission, or for access errors. INVALID_ARGUMENT
if the request is malformed. FAILED_PRECONDITION
if the requested course work has already been deleted. NOT_FOUND
if the requested course, course work, or student submission does not exist.
google_classroom.classroom.courses.courseWork.patch({
"courseId": "",
"id": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - id required
string
: Identifier of the course work. - updateMask
string
: Mask that identifies which fields on the course work to update. This field is required to do an update. The update fails if invalid fields are specified. If a field supports empty values, it can be cleared by specifying it in the update mask and not in the CourseWork object. If a field that does not support empty values is included in the update mask and not set in the CourseWork object, anINVALID_ARGUMENT
error is returned. The following fields may be specified by teachers:title
description
state
due_date
due_time
max_points
scheduled_time
submission_modification_mode
*topic_id
- body CourseWork
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output CourseWork
classroom.courses.courseWork.modifyAssignees
Modifies assignee mode and options of a coursework. Only a teacher of the course that contains the coursework may call this method. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to access the requested 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.
google_classroom.classroom.courses.courseWork.modifyAssignees({
"courseId": "",
"id": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - id required
string
: Identifier of the coursework. - body ModifyCourseWorkAssigneesRequest
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output CourseWork
classroom.courses.courseWorkMaterials.list
Returns a list of course work material that the requester is permitted to view. Course students may only view PUBLISHED
course work material. Course teachers and domain administrators may view all course work material. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to access the requested course or for access errors. INVALID_ARGUMENT
if the request is malformed. * NOT_FOUND
if the requested course does not exist.
google_classroom.classroom.courses.courseWorkMaterials.list({
"courseId": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - courseWorkMaterialStates
array
: Restriction on the work status to return. Only course work material that matches is returned. If unspecified, items with a work status ofPUBLISHED
is returned. - materialDriveId
string
: Optional filtering for course work material with at least one Drive material whose ID matches the provided string. Ifmaterial_link
is also specified, course work material must have materials matching both filters. - materialLink
string
: Optional filtering for course work material with at least one link material whose URL partially matches the provided string. - orderBy
string
: Optional sort ordering for results. A comma-separated list of fields with an optional sort direction keyword. Supported field isupdateTime
. Supported direction keywords areasc
anddesc
. If not specified,updateTime desc
is the default behavior. Examples:updateTime asc
,updateTime
- pageSize
integer
: Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results. - pageToken
string
: nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
classroom.courses.courseWorkMaterials.create
Creates a course work material. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to access the requested course, create course work material in the requested course, share a Drive attachment, or for access errors. INVALID_ARGUMENT
if the request is malformed or if more than 20 materials are provided. NOT_FOUND
if the requested course does not exist. FAILED_PRECONDITION
for the following request error: AttachmentNotVisible
google_classroom.classroom.courses.courseWorkMaterials.create({
"courseId": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - body CourseWorkMaterial
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output CourseWorkMaterial
classroom.courses.courseWorkMaterials.delete
Deletes a course work material. This request must be made by the Developer Console project of the OAuth client ID used to create the corresponding course work material item. This method returns the following error codes: PERMISSION_DENIED
if the requesting developer project did not create the corresponding course work material, if the requesting user is not permitted to delete the requested course or for access errors. FAILED_PRECONDITION
if the requested course work material has already been deleted. * NOT_FOUND
if no course exists with the requested ID.
google_classroom.classroom.courses.courseWorkMaterials.delete({
"courseId": "",
"id": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - id required
string
: Identifier of the course work material to delete. This identifier is a Classroom-assigned identifier. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output Empty
classroom.courses.courseWorkMaterials.get
Returns a course work material. This method returns the following error codes: PERMISSION_DENIED
if the requesting user is not permitted to access the requested course or course work material, or for access errors. INVALID_ARGUMENT
if the request is malformed. * NOT_FOUND
if the requested course or course work material does not exist.
google_classroom.classroom.courses.courseWorkMaterials.get({
"courseId": "",
"id": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - id required
string
: Identifier of the course work material. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- courseId required
Output
- output CourseWorkMaterial
classroom.courses.courseWorkMaterials.patch
Updates one or more fields of a course work material. This method returns the following error codes: PERMISSION_DENIED
if the requesting developer project for access errors. INVALID_ARGUMENT
if the request is malformed. FAILED_PRECONDITION
if the requested course work material has already been deleted. NOT_FOUND
if the requested course or course work material does not exist
google_classroom.classroom.courses.courseWorkMaterials.patch({
"courseId": "",
"id": ""
}, context)
Input
- input
object
- courseId required
string
: Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias. - id required
string
: Identifier of the course work material. - updateMask
string
: Mask that identifies which fields on the course work material to update. This field is required to do an update. The update fails if invalid fields are specified. If a field supports empty values, it can be cleared by specifying it in the update mask and not in the course work material object. If a field that does not support empty values is included in the update mask and not set in the course work material object, anINVALID_ARGUMENT
error is returned. The following fields may be specified by teachers:title
description
state
scheduled_time
*topic_id
- body CourseWorkMaterial
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota
- courseId required