Method: albums.share

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:

JSON representation
{
  "sharedAlbumOptions": {
    object (SharedAlbumOptions)
  }
}
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