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

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

Response body

If successful, the response body is empty.

Authorization scopes

Requires the following OAuth scope:

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