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 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-09-10 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]