Method: photo.update
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
포즈, 장소 연결, 연결 등의 Photo
메타데이터를 업데이트합니다. 사진의 픽셀 변경은 지원되지 않습니다.
updateMask
필드에 지정된 필드만 사용됩니다. updateMask
가 없으면 업데이트가 모든 필드에 적용됩니다.
이 메서드는 다음 오류 코드를 반환합니다.
HTTP 요청
PUT https://streetviewpublish.googleapis.com/v1/photo/{photo.photoId.id}
URL은 gRPC 트랜스코딩 구문을 사용합니다.
경로 매개변수
매개변수 |
photo.photoId.id |
string
사진의 고유 식별자입니다.
|
쿼리 매개변수
매개변수 |
updateMask |
string (FieldMask format)
필수 항목입니다. 업데이트할 사진 메타데이터의 필드를 식별하는 마스크입니다. 존재하지 않는 경우 이전 Photo 메타데이터가 이 요청에서 새 Photo 메타데이터로 완전히 대체됩니다. 잘못된 필드가 지정되면 업데이트가 실패합니다. 쉼표로 구분된 목록에 여러 필드를 지정할 수 있습니다. 유효한 필드는 다음과 같습니다.
pose.heading
pose.lat_lng_pair
pose.pitch
pose.roll
pose.level
pose.altitude
connections
places
참고: updateMask 에 반복되는 필드가 포함되어 있으면 반복되는 값의 전체 세트가 새 콘텐츠로 바뀝니다. 예를 들어 updateMask 에 connections 이 포함되어 있고 UpdatePhotoRequest.photo.connections 가 비어 있으면 모든 연결이 삭제됩니다.
|
요청 본문
요청 본문에는 Photo
의 인스턴스가 포함됩니다.
응답 본문
성공한 경우 응답 본문에 Photo
의 인스턴스가 포함됩니다.
승인 범위
다음 OAuth 범위가 필요합니다.
https://www.googleapis.com/auth/streetviewpublish
자세한 내용은 OAuth 2.0 개요를 참고하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2023-12-01(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2023-12-01(UTC)"],[[["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."]]],["This describes how to update a photo's metadata using the Street View Publish API. It uses a `PUT` request to a specific URL with a photo ID in the path. The `updateMask` query parameter specifies which metadata fields to modify. The request body contains the new metadata, and the response body returns the updated photo. Key metadata includes pose, connections, and places. Authorization requires a specific OAuth scope. Possible errors include permission, invalid argument, not found, or unavailability.\n"]]