Method: photos.batchDelete
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
HTTP isteği
POST https://streetviewpublish.googleapis.com/v1/photos:batchDelete
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
İstek içeriği
İstek gövdesi, aşağıdaki yapıya sahip verileri içerir:
JSON gösterimi |
{
"photoIds": [
string
]
} |
Alanlar |
photoIds[] |
string
Zorunlu. Photos öğesinin kimlikleri. HTTP GET istekleri, URL sorgu parametresi için şu söz dizimini gerektirir: photoIds=<id1>&photoIds=<id2>&... .
|
Yanıt gövdesi
Bir veya daha fazla Photos
öğenin toplu olarak silinmesi için verilen yanıt.
Başarılı olursa yanıt metni aşağıdaki yapıyla birlikte verileri içerir:
JSON gösterimi |
{
"status": [
{
object (Status )
}
]
} |
Alanlar |
status[] |
object (Status )
Toplu istekteki tek bir Photo öğesini silme işleminin durumu.
|
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/streetviewpublish
Daha fazla bilgi için OAuth 2.0 Overview (OAuth 2.0'a Genel Bakış) sayfasına göz atın.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-09-10 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 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"]]