Method: photos.batchDelete
Permintaan HTTP
POST https://streetviewpublish.googleapis.com/v1/photos:batchDelete
URL menggunakan sintaksis gRPC Transcoding.
Isi permintaan
Isi permintaan memuat data dengan struktur berikut:
Representasi JSON |
{
"photoIds": [
string
]
} |
Kolom |
photoIds[] |
string
Wajib. ID Photos . Permintaan GET HTTP memerlukan sintaksis berikut untuk parameter kueri URL: photoIds=<id1>&photoIds=<id2>&... .
|
Isi respons
Respons terhadap penghapusan batch satu atau beberapa Photos
.
Jika berhasil, isi respons memuat data dengan struktur berikut:
Representasi JSON |
{
"status": [
{
object (Status )
}
]
} |
Kolom |
status[] |
object (Status )
Status operasi untuk menghapus satu Photo dalam permintaan batch.
|
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/streetviewpublish
Untuk informasi selengkapnya, lihat Ringkasan OAuth 2.0.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-09-10 UTC.
[null,null,["Terakhir diperbarui pada 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"]]