किसी खास पोस्ट के संदर्भ में, Classroom के ऐड-ऑन के लिए अटैचमेंट से जुड़ा मेटाडेटा.
JSON के काेड में दिखाना
{"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.}
फ़ील्ड
courseId
string
इम्यूटेबल. कोर्स का आइडेंटिफ़ायर.
postId (deprecated)
string
इम्यूटेबल. इस सुविधा के इस्तेमाल पर रोक लगा दी गई है. इसके बजाय, itemId का इस्तेमाल करें.
itemId
string
इम्यूटेबल. उस Announcement, CourseWork या CourseWorkMaterial का आइडेंटिफ़ायर जिससे अटैचमेंट जुड़ा है.
supportsStudentWork
boolean
ज़रूरी नहीं. पोस्ट में, शिक्षक को छात्र-छात्राओं का काम और उन्हें दिए गए ग्रेड देखने की अनुमति है या नहीं.
छात्र या छात्रा के तौर पर अनुरोध करने वाले उपयोगकर्ता की भूमिका से जुड़ा ऐड-ऑन कॉन्टेक्स्ट. इसकी मौजूदगी का मतलब है कि अनुरोध करने वाला उपयोगकर्ता, कोर्स में छात्र है.
अनुरोध करने वाले उपयोगकर्ता की शिक्षक की भूमिका से जुड़ा ऐड-ऑन कॉन्टेक्स्ट. इसकी मौजूदगी से पता चलता है कि अनुरोध करने वाला उपयोगकर्ता, कोर्स में शिक्षक है.
StudentContext
अगर अनुरोध करने वाला उपयोगकर्ता छात्र है, तो भूमिका के हिसाब से कॉन्टेक्स्ट.
JSON के काेड में दिखाना
{"submissionId": string}
फ़ील्ड
submissionId
string
उपयोगकर्ता के सबमिशन आईडी का इस्तेमाल, ग्रेड पासबैक के लिए करने का अनुरोध करना. साथ ही, शिक्षक को छात्र-छात्रा का काम दिखाते समय, छात्र-छात्रा की पहचान करने के लिए भी इसका इस्तेमाल किया जा सकता है. यह तब सेट होता है, जब supportsStudentWorktrue हो.
TeacherContext
इस टाइप में कोई फ़ील्ड नहीं है.
अगर अनुरोध करने वाला उपयोगकर्ता शिक्षक है, तो भूमिका के हिसाब से कॉन्टेक्स्ट.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],[],null,["- [JSON representation](#SCHEMA_REPRESENTATION)\n- [StudentContext](#StudentContext)\n - [JSON representation](#StudentContext.SCHEMA_REPRESENTATION)\n- [TeacherContext](#TeacherContext)\n\nAttachment-relevant metadata for Classroom add-ons in the context of a specific post.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"courseId\": string, \"postId\": string, \"itemId\": string, \"supportsStudentWork\": boolean, // Union field `context` can be only one of the following: \"studentContext\": { object (/workspace/classroom/reference/rest/v1/AddOnContext#StudentContext) }, \"teacherContext\": { object (/workspace/classroom/reference/rest/v1/AddOnContext#TeacherContext) } // End of list of possible types for union field `context`. } ``` |\n\n| Fields ||\n|---------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `courseId` | `string` Immutable. Identifier of the course. |\n| `postId` **(deprecated)** | `string` | This item is deprecated! Immutable. Deprecated, use `itemId` instead. |\n| `itemId` | `string` Immutable. Identifier of the `Announcement`, `CourseWork`, or `CourseWorkMaterial` under which the attachment is attached. |\n| `supportsStudentWork` | `boolean` Optional. Whether the post allows the teacher to see student work and passback grades. |\n| Union field `context`. `context` can be only one of the following: ||\n| `studentContext` | `object (`[StudentContext](/workspace/classroom/reference/rest/v1/AddOnContext#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. |\n| `teacherContext` | `object (`[TeacherContext](/workspace/classroom/reference/rest/v1/AddOnContext#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. |\n\nStudentContext Role-specific context if the requesting user is a student.\n\n| JSON representation |\n|------------------------------------|\n| ``` { \"submissionId\": string } ``` |\n\n| Fields ||\n|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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`. |\n\nTeacherContext\n\nThis type has no fields.\nRole-specific context if the requesting user is a teacher."]]