Google Classroom アドオンの一般提供が開始されました。詳しくは、
アドオンのドキュメントをご覧ください。
REST Resource: invitations
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
リソース: Invitation
JSON 表現 |
{
"id": string,
"userId": string,
"courseId": string,
"role": enum (CourseRole )
} |
フィールド |
id |
string
Classroom によって割り当てられた ID。 読み取り専用です。
|
userId |
string
招待したユーザーの ID。 リクエストのパラメータとして指定する場合、この識別子は次のいずれかに設定できます。
- ユーザーの数字 ID
- お客様のメールアドレス
- リクエスト元のユーザーを示す文字列リテラル
"me"
|
courseId |
string
ユーザーを招待するコースの ID。
|
role |
enum (CourseRole )
ユーザーに招待するロール。COURSE_ROLE_UNSPECIFIED にすることはできません。
|
CourseRole
列挙型 |
COURSE_ROLE_UNSPECIFIED |
コースでのロールなし。 |
STUDENT |
コースに登録している生徒。 |
TEACHER |
コースの教師。 |
OWNER |
コースのオーナー。 |
メソッド |
|
招待を承認し、招待を削除して、招待したユーザーを指定されたコースの教師または生徒(該当する場合)に追加します。 |
|
招待状を作成します。 |
|
招待を削除します。 |
|
招待状を返します。 |
|
リクエスト元のユーザーが表示を許可されている招待状のリストを返します。リスト リクエストに一致する招待状のみが返されます。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 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. |"]]