Method: photos.batchDelete
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בקשת HTTP
POST https://streetviewpublish.googleapis.com/v1/photos:batchDelete
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
גוף הבקשה
גוף הבקשה מכיל נתונים במבנה הבא:
ייצוג JSON |
{
"photoIds": [
string
]
} |
שדות |
photoIds[] |
string
חובה. המזהים של Photos . בבקשות HTTP GET צריך להשתמש בתחביר הבא לפרמטר של השאילתה בכתובת ה-URL: photoIds=<id1>&photoIds=<id2>&... .
|
גוף התשובה
תגובה למחיקה בכמות גדולה של Photos
או יותר.
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל נתונים במבנה הבא:
ייצוג JSON |
{
"status": [
{
object (Status )
}
]
} |
שדות |
status[] |
object (Status )
הסטטוס של הפעולה שמוחקת Photo יחיד בבקשה באצווה.
|
היקפי ההרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/streetviewpublish
למידע נוסף, קראו את המאמר סקירה כללית של OAuth 2.0.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-10 (שעון 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"]],["עדכון אחרון: 2024-09-10 (שעון UTC)."],[[["The `photos.batchDelete` API allows for deleting multiple photos and their metadata within Street View Publish."],["The request body requires a list of `photoIds` for the photos to be deleted."],["The response provides individual status updates for each photo deletion attempt."],["Authorization with the `https://www.googleapis.com/auth/streetviewpublish` scope is necessary."],["Failures may occur for individual photos even if the overall batch deletion request is successful, details of which can be found in the response."]]],["This describes how to batch delete photos and their metadata via a POST request to `https://streetviewpublish.googleapis.com/v1/photos:batchDelete`. The request body requires a JSON array of `photoIds`. The response body includes an array of `status` objects, indicating the success or failure of each individual photo deletion. Authentication requires the `https://www.googleapis.com/auth/streetviewpublish` OAuth scope. The URL uses gRPC transcoding. Failures may occur due to missing fields or authentication errors.\n"]]