Google Photos Library API の以前のドキュメントを表示しています。
Method: albums.patch
指定された id
でアルバムを更新します。アルバムの id
、title
、coverPhotoMediaItemId
フィールドのみが読み取られます。アルバムは、デベロッパーによって API で作成され、ユーザーがオーナーである必要があります。
HTTP リクエスト
PATCH https://photoslibrary.googleapis.com/v1/albums/{album.id}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
album.id |
string
アルバムの識別子。これは、セッション間でこのアルバムを識別するために使用できる永続的な ID です。
|
クエリ パラメータ
パラメータ |
updateMask |
string (FieldMask format)
必須。指定されたアルバムのどのフィールドを更新するかを指定します。有効な値は title と coverPhotoMediaItemId のみです。 完全修飾フィールド名のカンマ区切りリスト。例: "user.displayName,photo" 。
|
リクエストの本文
リクエストの本文には Album
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には Album
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/photoslibrary.edit.appcreateddata
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-11-07 UTC。
[null,null,["最終更新日 2024-11-07 UTC。"],[[["This API updates an album with a specified ID, modifying only the title and cover photo, if provided in the request."],["The album being updated must have been created by the developer via the API and be owned by the user."],["A `PATCH` request is used, targeting the album's ID in the URL."],["An `updateMask` query parameter is required to specify which album fields (title, coverPhotoMediaItemId) are being updated."],["The request body should contain an `Album` object with the updated fields, and the response, if successful, also contains an `Album` object."]]],["This describes updating an album using a PATCH request to `https://photoslibrary.googleapis.com/v1/albums/{album.id}`. The `album.id` path parameter identifies the target album. The `updateMask` query parameter, with values `title` or `coverPhotoMediaItemId`, specifies which album fields to update. The request body contains the updated album information, while the successful response body returns the updated album. This operation requires the `https://www.googleapis.com/auth/photoslibrary.edit.appcreateddata` authorization scope. Only albums created via the API and owned by the user can be modified.\n"]]