Google Classroom add-ons are now generally available to developers! Please see the
add-ons documentation for more information.
Send feedback
Material
Stay organized with collections
Save and categorize content based on your preferences.
Material attached to course work.
When creating attachments, setting the form
field is not supported.
JSON representation
{
// Union field material
can be only one of the following:
"driveFile" : {
object (SharedDriveFile
)
} ,
"youtubeVideo" : {
object (YouTubeVideo
)
} ,
"link" : {
object (Link
)
} ,
"form" : {
object (Form
)
}
// End of list of possible types for union field material
.
}
Fields
Union field material
. Material content. material
can be only one of the following:
driveFile
object (SharedDriveFile
)
Google Drive file material.
youtubeVideo
object (YouTubeVideo
)
YouTube video material.
link
object (Link
)
Link material. On creation, this is upgraded to a more appropriate type if possible, and this is reflected in the response.
form
object (Form
)
Google Forms material.
SharedDriveFile
Drive file that is used as material for course work.
JSON representation
{
"driveFile" : {
object (DriveFile
)
} ,
"shareMode" : enum (ShareMode
)
}
Fields
driveFile
object (DriveFile
)
Drive file details.
shareMode
enum (ShareMode
)
Mechanism by which students access the Drive item.
ShareMode
Possible sharing options. Defaults to VIEW if left unspecified, and other values may only be specified within a course work object of type ASSIGNMENT.
Enums
UNKNOWN_SHARE_MODE
No sharing mode specified. This should never be returned.
VIEW
Students can view the shared file.
EDIT
Students can edit the shared file.
STUDENT_COPY
Students have a personal copy of the shared file.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-15 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{
"last_modified": "Last updated 2024-08-15 UTC.",
"state": ""
}