Method: albums.patch

Update the album with the specified id. Only the id, title and coverPhotoMediaItemId fields of the album are read, and the album must be created by the developers and owned by the user.

HTTP request

PATCH https://photoslibrary.googleapis.com/v1/albums/{album.id}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
album.id

string

Identifier for the album. This is a persistent identifier that can be used between sessions to identify this album.

Query parameters

Parameters
updateMask

string (FieldMask format)

Indicate what fields in the provided album to update. The only valid values are title and coverPhotoMediaItemId.

A comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of Album.

Response body

If successful, the response body contains an instance of Album.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/photoslibrary.edit.appcreateddata

Try it!