Method: courses.announcements.delete
お知らせを削除します。
このリクエストは、対応するお知らせアイテムの作成に使用された OAuth クライアント ID の Developer Console プロジェクトによって行う必要があります。
このメソッドは、次のエラーコードを返します。
PERMISSION_DENIED
: リクエスト元のデベロッパー プロジェクトで対応するお知らせが作成されていない場合(リクエスト側のユーザーが、リクエストされたコースを削除する権限がない場合、またはアクセスエラーの場合)
FAILED_PRECONDITION
: リクエストされたお知らせがすでに削除されている場合。
- リクエストされた ID を持つコースが存在しない場合は
NOT_FOUND
。
HTTP リクエスト
DELETE https://classroom.googleapis.com/v1/courses/{courseId}/announcements/{id}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
courseId |
string
コースの ID。この ID は、Classroom で割り当てられた ID または alias のいずれかです。
|
id |
string
削除するお知らせの ID。この ID は Classroom によって割り当てられた ID です。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文は空です。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/classroom.announcements
詳しくは、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 2022-03-21 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":"その他"
}]