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 | |
---|---|
course |
Immutable. Identifier of the course. |
postId |
Immutable. Deprecated, use |
item |
Immutable. Identifier of the |
supports |
Optional. Whether the post allows the teacher to see student work and passback grades. |
Union field
|
|
student |
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. |
teacher |
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 | |
---|---|
submission |
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.