Method: invitations.create
招待状を作成します。ユーザーとコースへの招待は一度に 1 つしか存在できません。変更するには、招待状を削除してから再作成してください。
このメソッドは、次のエラーコードを返します。
PERMISSION_DENIED
: リクエスト元のユーザーが、このコースまたはアクセスエラーの招待状を作成する権限を持っていない場合。
NOT_FOUND
: コースまたはユーザーが存在しない場合。
FAILED_PRECONDITION
: リクエストされたユーザーのアカウントが無効になっている場合、またはそのユーザーがすでにこのロールまたはより大きな権限を持つロールを持っている場合。
ALREADY_EXISTS
: 指定されたユーザーとコースの招待状がすでに存在する場合。
HTTP リクエスト
POST https://classroom.googleapis.com/v1/invitations
この URL は gRPC Transcoding 構文を使用します。
リクエスト本文
リクエストの本文には Invitation
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には、新しく作成された Invitation
のインスタンスが含まれます。
認証スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/classroom.rosters
詳しくは、OAuth 2.0 の概要をご覧ください。
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-05-25 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"必要な情報がない"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"複雑すぎる / 手順が多すぎる"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"最新ではない"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"サンプル / コードに問題がある"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]