Method: photo.delete
Удаляет Photo
и ее метаданные.
Этот метод возвращает следующие коды ошибок:
HTTP-запрос
DELETE https://streetviewpublish.googleapis.com/v1/photo/{photoId}
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
photoId | string Необходимый. Идентификатор Photo . |
Тело запроса
Тело запроса должно быть пустым.
Тело ответа
В случае успеха тело ответа пустое.
Области авторизации
Требуется следующая область действия OAuth:
-
https://www.googleapis.com/auth/streetviewpublish
Дополнительную информацию см. в обзоре OAuth 2.0 .
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-11-08 UTC.
[null,null,["Последнее обновление: 2024-11-08 UTC."],[[["Permanently deletes a specified Photo and its metadata from Street View Publish."],["Requires authorization with the `https://www.googleapis.com/auth/streetviewpublish` scope."],["Returns an error if the user lacks permission or the photo ID is invalid."],["Uses a DELETE request to the URL `https://streetviewpublish.googleapis.com/v1/photo/{photoId}` with the photo ID as a path parameter."],["The request body should be empty, and a successful deletion results in an empty response body."]]],["This document outlines how to delete a photo and its metadata using a `DELETE` HTTP request. The request is sent to `https://streetviewpublish.googleapis.com/v1/photo/{photoId}`, with the required `photoId` parameter specifying the photo to delete. The request body must be empty. A successful deletion returns an empty response body. The process requires the `https://www.googleapis.com/auth/streetviewpublish` authorization scope. Potential error codes include `PERMISSION_DENIED` and `NOT_FOUND`.\n"]]