Google Classroom ऐड-ऑन अब आम तौर पर डेवलपर के लिए उपलब्ध हैं! ज़्यादा जानकारी के लिए, कृपया
ऐड-ऑन दस्तावेज़ देखें.
Method: courses.courseWork.modifyAssignees
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस कुकी का इस्तेमाल, असाइन किए गए कोर्सवर्क के लिए छात्र-छात्राओं को असाइन करने के मोड और विकल्पों में बदलाव करने के लिए किया जाता है.
सिर्फ़ उस कोर्स का शिक्षक इस तरीके का इस्तेमाल कर सकता है जिसमें कोर्सवर्क शामिल है.
यह तरीका, गड़बड़ी के ये कोड दिखाता है:
PERMISSION_DENIED
अगर अनुरोध करने वाले उपयोगकर्ता को अनुरोध किए गए कोर्स या कोर्स वर्क को ऐक्सेस करने की अनुमति नहीं है या ऐक्सेस से जुड़ी गड़बड़ियों के लिए.
INVALID_ARGUMENT
अगर अनुरोध गलत तरीके से किया गया हो.
NOT_FOUND
अगर अनुरोध किया गया कोर्स या कोर्स वर्क मौजूद नहीं है.
FAILED_PRECONDITION
के लिए, यहां दी गई अनुरोध से जुड़ी गड़बड़ी:
एचटीटीपी अनुरोध
POST https://classroom.googleapis.com/v1/courses/{courseId}/courseWork/{id}:modifyAssignees
यह यूआरएल, gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
courseId |
string
कोर्स का आइडेंटिफ़ायर. यह आइडेंटिफ़ायर, Classroom में असाइन किया गया आइडेंटिफ़ायर या alias हो सकता है.
|
id |
string
कोर्स वर्क का आइडेंटिफ़ायर.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य हिस्से में, इस स्ट्रक्चर का डेटा शामिल होता है:
फ़ील्ड |
assigneeMode |
enum (AssigneeMode )
कोर्सवर्क का मोड. इससे यह पता चलता है कि इसे सभी छात्र-छात्राओं को असाइन किया जाएगा या सिर्फ़ कुछ छात्र-छात्राओं को.
|
modifyIndividualStudentsOptions |
object (ModifyIndividualStudentsOptions )
यह सेट करें कि किन छात्र-छात्राओं को कोर्सवर्क असाइन किया गया है या नहीं. इस प्रॉपर्टी की वैल्यू सिर्फ़ तब सबमिट करें, जब assigneeMode की वैल्यू INDIVIDUAL_STUDENTS हो.
|
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में CourseWork
का एक इंस्टेंस शामिल किया जाता है.
अनुमति के स्कोप
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/classroom.coursework.students
ज़्यादा जानकारी के लिए, अनुमति देने से जुड़ी गाइड देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-26 (UTC) को अपडेट किया गया."],[],[],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nModifies assignee mode and options of a coursework.\n\nOnly a teacher of the course that contains the coursework may call this method.\n\nThis method returns the following error codes:\n\n- `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work or for [access errors](/workspace/classroom/reference/Access.Errors).\n- `INVALID_ARGUMENT` if the request is malformed.\n- `NOT_FOUND` if the requested course or course work does not exist.\n- `FAILED_PRECONDITION` for the following [request error](/workspace/classroom/reference/Request.Errors):\n - EmptyAssignees\n\nHTTP request\n\n`POST https://classroom.googleapis.com/v1/courses/{courseId}/courseWork/{id}:modifyAssignees`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `courseId` | `string` Identifier of the course. This identifier can be either the Classroom-assigned identifier or an [alias](/workspace/classroom/reference/rest/v1/courses.aliases#CourseAlias). |\n| `id` | `string` Identifier of the coursework. |\n\nRequest body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"assigneeMode\": enum (/workspace/classroom/reference/rest/v1/AssigneeMode), \"modifyIndividualStudentsOptions\": { object (/workspace/classroom/reference/rest/v1/ModifyIndividualStudentsOptions) } } ``` |\n\n| Fields ||\n|-----------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `assigneeMode` | `enum (`[AssigneeMode](/workspace/classroom/reference/rest/v1/AssigneeMode)`)` Mode of the coursework describing whether it will be assigned to all students or specified individual students. |\n| `modifyIndividualStudentsOptions` | `object (`[ModifyIndividualStudentsOptions](/workspace/classroom/reference/rest/v1/ModifyIndividualStudentsOptions)`)` Set which students are assigned or not assigned to the coursework. Must be specified only when `assigneeMode` is `INDIVIDUAL_STUDENTS`. |\n\nResponse body\n\nIf successful, the response body contains an instance of [CourseWork](/workspace/classroom/reference/rest/v1/courses.courseWork#CourseWork).\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/classroom.coursework.students`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]