Method: photo.delete
מוחק Photo
ואת המטא-נתונים שלו.
השיטה הזו מחזירה את קודי השגיאה הבאים:
בקשת HTTP
DELETE https://streetviewpublish.googleapis.com/v1/photo/{photoId}
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
photoId |
string
חובה. המזהה של Photo .
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התגובה
אם הביצוע יהיה תקין, גוף התגובה יהיה ריק.
היקפי הרשאות
נדרש היקף OAuth הבא:
https://www.googleapis.com/auth/streetviewpublish
למידע נוסף, עיין בסקירה הכללית על OAuth 2.0.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2023-12-01 (שעון UTC).
[null,null,["עדכון אחרון: 2023-12-01 (שעון UTC)."],[[["Permanently deletes a specified Photo and its metadata from Street View Publish."],["Requires authorization with the `https://www.googleapis.com/auth/streetviewpublish` scope."],["Returns an error if the user lacks permission or the photo ID is invalid."],["Uses a DELETE request to the URL `https://streetviewpublish.googleapis.com/v1/photo/{photoId}` with the photo ID as a path parameter."],["The request body should be empty, and a successful deletion results in an empty response body."]]],["This document outlines how to delete a photo and its metadata using a `DELETE` HTTP request. The request is sent to `https://streetviewpublish.googleapis.com/v1/photo/{photoId}`, with the required `photoId` parameter specifying the photo to delete. The request body must be empty. A successful deletion returns an empty response body. The process requires the `https://www.googleapis.com/auth/streetviewpublish` authorization scope. Potential error codes include `PERMISSION_DENIED` and `NOT_FOUND`.\n"]]