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 |
Fields | |
---|---|
courseId |
Immutable. Identifier of the course. |
postId |
Immutable. Deprecated, use |
itemId |
Immutable. Identifier of the |
supportsStudentWork |
Optional. Whether the post allows the teacher to see student work and passback grades. |
Union field
|
|
studentContext |
Add-on context corresponding to the requesting user's role as a student. Its presence implies that the requesting user is a student in the course. |
teacherContext |
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 |
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 |
TeacherContext
This type has no fields.
Role-specific context if the requesting user is a teacher.