Attachment-relevant metadata for Classroom add-ons in the context of a specific post.
JSON representation
{"courseId": string,"postId": string,"itemId": string,"supportsStudentWork": boolean,// Union field context can be only one of the following:"studentContext": {object (StudentContext)},"teacherContext": {object (TeacherContext)}// End of list of possible types for union field context.}
Fields
courseId
string
Immutable. Identifier of the course.
postId (deprecated)
string
Immutable. Deprecated, use itemId instead.
itemId
string
Immutable. Identifier of the Announcement, CourseWork, or CourseWorkMaterial under which the attachment is attached.
supportsStudentWork
boolean
Optional. Whether the post allows the teacher to see student work and passback grades.
Add-on context corresponding to the requesting user's role as a teacher. Its presence implies that the requesting user is a teacher in the course.
StudentContext
Role-specific context if the requesting user is a student.
JSON representation
{"submissionId": string}
Fields
submissionId
string
Requesting user's submission id to be used for grade passback and to identify the student when showing student work to the teacher. This is set exactly when supportsStudentWork is true.
TeacherContext
This type has no fields.
Role-specific context if the requesting user is a teacher.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-03 UTC."],[[["Add-on context provides metadata for Classroom add-ons related to a specific post, including course and post identifiers."],["The context indicates whether the post supports student work and allows for grade passback."],["Depending on the user's role, the context includes either `studentContext` or `teacherContext` with relevant information."],["`studentContext` contains the student's submission ID for grade passback when `supportsStudentWork` is true."],["`teacherContext` currently has no fields but signifies the requesting user is a teacher."]]],[]]