Method: photo.update

Updates the metadata of a Photo, such as pose, place association, connections, etc. Changing the pixels of a photo is not supported.

Only the fields specified in the updateMask field are used. If updateMask is not present, the update applies to all fields.

This method returns the following error codes:

HTTP request

PUT https://streetviewpublish.googleapis.com/v1/photo/{photo.photoId.id}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
photo.photoId.id

string

Required. A unique identifier for a photo.

Query parameters

Parameters
updateMask

string (FieldMask format)

Mask that identifies fields on the photo metadata to update. If not present, the old Photo metadata is entirely replaced with the new Photo metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list.

The following fields are valid:

  • pose.heading
  • pose.latLngPair
  • pose.pitch
  • pose.roll
  • pose.level
  • pose.altitude
  • connections
  • places

Request body

The request body contains an instance of Photo.

Response body

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

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/streetviewpublish

For more information, see the OAuth 2.0 Overview.

Try it!