AI-generated Key Takeaways
-
Updates a Photo's metadata, such as pose, connections, and places, but not the image pixels themselves.
-
Uses an
updateMask
to specify which fields to update; if omitted, all fields are updated. -
Requires the
https://www.googleapis.com/auth/streetviewpublish
OAuth scope for authorization. -
Returns the updated Photo object if successful.
-
May return errors if permissions are lacking, the request is invalid, the Photo doesn't exist, or is still being indexed.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
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:
google.rpc.Code.PERMISSION_DENIED
if the requesting user did not create the requested photo.google.rpc.Code.INVALID_ARGUMENT
if the request is malformed.google.rpc.Code.NOT_FOUND
if the requested photo does not exist.google.rpc.Code.UNAVAILABLE
if the requestedPhoto
is still being indexed.
HTTP request
PUT https://streetviewpublish.googleapis.com/v1/photo/{photo.photoId.id}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
photo.photoId.id |
A unique identifier for a photo. |
Query parameters
Parameters | |
---|---|
updateMask |
Required. Mask that identifies fields on the photo metadata to update. If not present, the old The following fields are valid:
|
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.