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
อย่างน้อย 1 รายการ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"status": [
{
object (Status )
}
]
} |
ช่อง |
status[] |
object (Status )
สถานะสำหรับการดำเนินการลบ Photo รายการเดียวในคำขอแบบกลุ่ม
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/streetviewpublish
สำหรับข้อมูลเพิ่มเติม โปรดดูที่ภาพรวมของ OAuth 2.0
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-10 UTC
[null,null,["อัปเดตล่าสุด 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"]]