Google Classroom アドオンの一般提供が開始されました。詳しくは、
アドオンのドキュメントをご覧ください。
Method: courses.checkAddOnCreationEligibility
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ユーザーが特定のコースに対してアドオンの添付ファイルを作成する資格があるかどうかを返します。
このメソッドは非推奨です。UserProfiles.checkUserCapability
を代わりに使用してください。
このメソッドは、次のエラーコードを返します。
PERMISSION_DENIED
: リクエストしたユーザーにリクエストしたコースへのアクセス権がない場合、またはアクセス エラーの場合。
INVALID_ARGUMENT
: リクエストの形式が正しくない場合。
NOT_FOUND
: リクエストされたコースが存在しない場合。
HTTP リクエスト
GET https://classroom.googleapis.com/v1/courses/{courseId}:checkAddOnCreationEligibility
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
courseId |
string
必須。コースの識別子。
|
リクエストの本文
リクエストの本文は空にする必要があります。
レスポンスの本文
教師ユーザーが特定のコース用にアドオン アタッチメントを作成できるかどうか。
成功した場合、レスポンスの本文には次の構造のデータが含まれます。
JSON 表現 |
{
"courseId": string,
"isCreateAttachmentEligible": boolean
} |
フィールド |
courseId |
string
変更不可。コースの識別子。
|
isCreateAttachmentEligible |
boolean
教師がこのコースでアドオンの添付ファイルを作成できるかどうか。
|
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/classroom.addons.teacher
詳しくは、認可ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],[],null,["# Method: courses.checkAddOnCreationEligibility\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.CheckAddOnCreationEligibilityResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n\n| This item is deprecated!\nReturns whether a user is eligible to create add-on attachments in a given course.\n\nThis method is deprecated. Use [`UserProfiles.checkUserCapability`](/workspace/classroom/reference/rest/v1/userProfiles/checkUserCapability#body.PATH_PARAMETERS.user_id) instead.\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 for [access errors](/workspace/classroom/reference/Access.Errors).\n- `INVALID_ARGUMENT` if the request is malformed.\n- `NOT_FOUND` if the requested course does not exist.\n\n### HTTP request\n\n`GET https://classroom.googleapis.com/v1/courses/{courseId}:checkAddOnCreationEligibility`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------|----------------------------------------------|\n| `courseId` | `string` Required. Identifier of the course. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nWhether a teacher user is allowed to create add-on attachments for a given course.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------|\n| ``` { \"courseId\": string, \"isCreateAttachmentEligible\": boolean } ``` |\n\n| Fields ||\n|------------------------------|---------------------------------------------------------------------------------------|\n| `courseId` | `string` Immutable. Identifier of the course. |\n| `isCreateAttachmentEligible` | `boolean` Whether the teacher is allowed to create add-on attachments in this course. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/classroom.addons.teacher`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]