You are viewing the legacy documentation for the Google Photos Library API.
Method: albums.share
Stay organized with collections
Save and categorize content based on your preferences.
Marks an album as shared and accessible to other users. This action can only be performed on albums which were created by the developer via the API.
HTTP request
POST https://photoslibrary.googleapis.com/v1/albums/{albumId}:share
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
albumId |
string
Required. Identifier of the album to be shared. This albumId must belong to an album created by the developer.
|
Request body
The request body contains data with the following structure:
Fields |
sharedAlbumOptions |
object (SharedAlbumOptions )
Options to be set when converting the album to a shared album.
|
Response body
Response to successfully sharing an album.
If successful, the response body contains data with the following structure:
JSON representation |
{
"shareInfo": {
object (ShareInfo )
}
} |
Fields |
shareInfo |
object (ShareInfo )
Output only. Information about the shared album.
|
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/photoslibrary.sharing
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 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["Marks an album as shared, making it accessible to other users, but only for albums created via the API."],["Requires an HTTP POST request to a specific URL with the album ID as a path parameter."],["The request body includes shared album options, and the response provides shared album information."],["Authorization is necessary using the `https://www.googleapis.com/auth/photoslibrary.sharing` scope."]]],[]]