PlaylistImages: delete
刪除播放清單圖片。
配額影響:呼叫這個方法時,配額費用為 50 個單位。
要求
HTTP 要求
DELETE https://www.googleapis.com/youtube/v3/playlistImages
授權
這項要求需要至少擁有下列其中一個範圍的授權 (進一步瞭解驗證和授權)。
範圍 |
https://www.googleapis.com/auth/youtubepartner |
https://www.googleapis.com/auth/youtube |
https://www.googleapis.com/auth/youtube.force-ssl |
參數
下表列出這個查詢支援的參數。這裡列出的所有參數都是查詢參數。
參數 |
必要參數 |
id |
string
id 參數會指定要刪除的播放清單圖片的 YouTube 播放清單圖片 ID。在 playlistImages 資源中,id 屬性會指定播放清單圖片的 ID。 |
選用參數 |
onBehalfOfContentOwner |
string
注意:onBehalfOfContentOwner 參數僅適用於 YouTube 內容合作夥伴,且只能在適當的授權要求中使用。
這個參數適用於擁有並管理許多不同 YouTube 頻道的 YouTube 內容合作夥伴。與內容擁有者結盟的使用者只要進行驗證一次,就能存取及管理該內容擁有者的所有影片和頻道資料,而不需要分別提供各頻道的驗證憑證。
透過參數設定參數時,其值可用來識別內容擁有者,而要求的授權憑證則可識別有權代表該內容擁有者的 YouTube 使用者。使用者驗證的帳戶必須在 YouTube 創作者工作室設定中連結到指定內容擁有者。 |
回應
如果成功,這個方法會傳回 HTTP 204
回應代碼 (No Content
)。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-16 (世界標準時間)。
[null,null,["上次更新時間:2024-08-16 (世界標準時間)。"],[[["This method allows for the deletion of a playlist image using the YouTube Data API."],["Deleting a playlist image requires authorization with one of the specified scopes, including `youtubepartner`, `youtube`, or `youtube.force-ssl`."],["The `id` parameter is mandatory and specifies the unique ID of the playlist image to be deleted."],["Using this method has a quota cost of 50 units per request."],["Content partners managing multiple channels can use the `onBehalfOfContentOwner` parameter to manage their data."]]],["This method deletes a specific playlist image on YouTube, identified by its `id`. The request is made via a `DELETE` HTTP request to the `/playlistImages` endpoint. Authorization is required, using one of the specified scopes. A `quota cost` of 50 units is associated with each call. An optional parameter, `onBehalfOfContentOwner`, allows content partners to manage data across multiple channels. Upon successful deletion, a `204` response code is returned. No request body is needed.\n"]]