Google Photos Library API の以前のドキュメントを表示しています。
Method: albums.batchRemoveMediaItems
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-11-21 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-11-21 UTC。"],[[["The API removes one or more media items from a specified album, requiring the media items and album to be created by the developer."],["It supports removing media items from shared albums only if added by the user or if the user created the album."],["Requests must include the `albumId` as a path parameter and an array of `mediaItemIds` in the request body."],["The API follows an all-or-nothing approach, failing the entire request if any specified media item or album is invalid."],["Authorization requires the `https://www.googleapis.com/auth/photoslibrary` scope."]]],["This describes the process to remove media items from an album using the Google Photos Library API. A `POST` request to `https://photoslibrary.googleapis.com/v1/albums/{albumId}:batchRemoveMediaItems` is required, including the `albumId` in the path. The request body, in JSON format, needs an array of `mediaItemIds` to remove, up to 50. This action requires the `https://www.googleapis.com/auth/photoslibrary` OAuth scope. A successful request returns an empty response. If an error occurs, no media items will be removed.\n"]]