Method: sharedAlbums.leave

Leaves a previously-joined shared album on behalf of the Google Photos user. The user must not own this album.

HTTP request

POST https://photoslibrary.googleapis.com/v1/sharedAlbums:leave

The URL uses gRPC Transcoding syntax.

Request body

The request body contains data with the following structure:

JSON representation
{
  "shareToken": string
}
Fields
shareToken

string

Token to leave the shared album on behalf of the user.

Response body

If successful, the response body will be empty.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/photoslibrary.sharing

Try it!