Method: sharedAlbums.leave

  • Leaves a previously-joined shared album for a Google Photos user who doesn't own the album.

  • Requires a POST request to the https://photoslibrary.googleapis.com/v1/sharedAlbums:leave endpoint.

  • The request body must contain the shareToken of the album to be left.

  • Upon success, the API returns an empty response body.

  • Utilizes the https://www.googleapis.com/auth/photoslibrary.sharing OAuth scope for authorization.

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