Google Classroom ऐड-ऑन अब आम तौर पर डेवलपर के लिए उपलब्ध हैं! ज़्यादा जानकारी के लिए, कृपया
ऐड-ऑन दस्तावेज़ देखें.
REST Resource: invitations
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
संसाधन: न्योता
किसी कोर्स में शामिल होने का न्योता.
JSON के काेड में दिखाना |
{
"id": string,
"userId": string,
"courseId": string,
"role": enum (CourseRole )
} |
फ़ील्ड |
id |
string
Classroom से असाइन किया गया आइडेंटिफ़ायर. सिर्फ़ पढ़ने के लिए.
|
userId |
string
न्योता पाने वाले उपयोगकर्ता का आइडेंटिफ़ायर. अनुरोध के पैरामीटर के तौर पर बताए जाने पर, इस आइडेंटिफ़ायर को इनमें से किसी एक पर सेट किया जा सकता है:
- उपयोगकर्ता का अंकों वाला आइडेंटिफ़ायर
- उपयोगकर्ता का ईमेल पता
- स्ट्रिंग लिटरल
"me" , जिससे अनुरोध करने वाले उपयोगकर्ता के बारे में पता चलता है
|
courseId |
string
उस कोर्स का आइडेंटिफ़ायर जिसमें उपयोगकर्ता को शामिल होने का न्योता भेजना है.
|
role |
enum (CourseRole )
उपयोगकर्ता को जो भूमिका देनी है. यह COURSE_ROLE_UNSPECIFIED नहीं होना चाहिए.
|
CourseRole
ऐसी भूमिकाएं जिनके लिए किसी उपयोगकर्ता को न्योता भेजा जा सकता है.
Enums |
COURSE_ROLE_UNSPECIFIED |
कोर्स के लिए कोई भूमिका नहीं. |
STUDENT |
कोर्स में शामिल छात्र-छात्राएं. |
TEACHER |
कोर्स का शिक्षक. |
OWNER |
कोर्स का मालिक. |
तरीके |
|
न्योता स्वीकार करने पर, उसे हटा दिया जाता है. साथ ही, न्योता पाने वाले उपयोगकर्ता को उस कोर्स के शिक्षकों या छात्र-छात्राओं (जैसा कि ज़रूरी हो) में जोड़ दिया जाता है. |
|
न्योता बनाता है. |
|
न्योता मिटाता है. |
|
न्योता दिखाता है. |
|
उन न्योतों की सूची दिखाता है जिन्हें देखने की अनुमति, अनुरोध करने वाले उपयोगकर्ता को है. यह सूची, अनुरोध से मैच करने वाले न्योतों तक ही सीमित होती है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],[],null,["# REST Resource: invitations\n\n- [Resource: Invitation](#Invitation)\n - [JSON representation](#Invitation.SCHEMA_REPRESENTATION)\n- [CourseRole](#CourseRole)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Invitation\n--------------------\n\nAn invitation to join a course.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"userId\": string, \"courseId\": string, \"role\": enum (/workspace/classroom/reference/rest/v1/invitations#CourseRole) } ``` |\n\n| Fields ||\n|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` Identifier assigned by Classroom. Read-only. |\n| `userId` | `string` Identifier of the invited user. When specified as a parameter of a request, this identifier can be set to one of the following: - the numeric identifier for the user - the email address of the user - the string literal `\"me\"`, indicating the requesting user |\n| `courseId` | `string` Identifier of the course to invite the user to. |\n| `role` | `enum (`[CourseRole](/workspace/classroom/reference/rest/v1/invitations#CourseRole)`)` Role to invite the user to have. Must not be `COURSE_ROLE_UNSPECIFIED`. |\n\nCourseRole\n----------\n\nPossible roles a user may be invite to have.\n\n| Enums ||\n|---------------------------|------------------------|\n| `COURSE_ROLE_UNSPECIFIED` | No course role. |\n| `STUDENT` | Student in the course. |\n| `TEACHER` | Teacher of the course. |\n| `OWNER` | Owner of the course. |\n\n| Methods ------- ||\n|-------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| ### [accept](/workspace/classroom/reference/rest/v1/invitations/accept) | Accepts an invitation, removing it and adding the invited user to the teachers or students (as appropriate) of the specified course. |\n| ### [create](/workspace/classroom/reference/rest/v1/invitations/create) | Creates an invitation. |\n| ### [delete](/workspace/classroom/reference/rest/v1/invitations/delete) | Deletes an invitation. |\n| ### [get](/workspace/classroom/reference/rest/v1/invitations/get) | Returns an invitation. |\n| ### [list](/workspace/classroom/reference/rest/v1/invitations/list) | Returns a list of invitations that the requesting user is permitted to view, restricted to those that match the list request. |"]]