Sign in

Batch update photos

documented

Update metadata for multiple photos.

POST /v1/photos:batchUpdateStreet View Publish APIno implementation yet0 runs
No 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/photos:batchUpdate" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"updatePhotoRequests":[{"photo":{"photoId":{"id":"{{$photo_id}}"},"pose":{"latLngPair":{"latitude":{{$latitude}},"longitude":{{$longitude}}},"altitude":{{$altitude}},"heading":{{$heading}},"pitch":{{$pitch}},"roll":{{$roll}}},"connections":[{"target":{"photoId":{"id":"{{$target_photo_id}}"}}}],"places":[{"placeId":"{{$place_id}}","name":"{{$place_name}}","languageCode":"{{$language_code}}"}]}},"updateMask":"pose.lat_lng_pair,pose.heading,pose.altitude,connections,places"}]}'"