Update photo
documentedUpdate metadata for an existing Street View photo.
PUT /v1/photo/{photoId}Street View Publish APIno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://streetviewpublish.googleapis.com/v1/photo/{{photoId}}?updateMask=pose.lat_lng_pair,pose.heading,connections,places" \
-X PUT \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"pose": {
"latLngPair": {
"latitude": {{$latitude}},
"longitude": {{$longitude}}
},
"heading": {{$heading}},
"pitch": {{$pitch}},
"roll": {{$roll}},
"altitude": {{$altitude}}
},
"connections": [
{
"target": {
"photoId": {
"id": "{{$target_photo_id}}"
}
}
}
],
"places": [
{
"placeId": "{{$place_id}}"
}
]
}'