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 |
Required. Identifier of the album to be shared. This |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"sharedAlbumOptions": {
object ( |
Fields | |
---|---|
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 ( |
Fields | |
---|---|
shareInfo |
Output only. Information about the shared album. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/photoslibrary.sharing