Method: applications.dataSafety
Записывает декларацию меток безопасности приложения.
HTTP-запрос
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/dataSafety
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
packageName | string Необходимый. Имя пакета приложения. |
Тело запроса
Тело запроса содержит данные следующей структуры:
JSON-представление |
---|
{
"safetyLabels": string
} |
Тело ответа
В случае успеха тело ответа пустое.
Области авторизации
Требуется следующая область действия OAuth:
-
https://www.googleapis.com/auth/androidpublisher
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-10 UTC.
[null,null,["Последнее обновление: 2025-01-10 UTC."],[[["This documentation details the process and requirements for submitting Data Safety labels for your Android app through the Google Play Developer API."],["You'll need to make an HTTP POST request to a specific URL, including your app's package name."],["The request body must contain a CSV file with your Data Safety responses, formatted as described in the provided links."],["Successful submission will result in an empty response body, and you'll need the 'androidpublisher' OAuth scope for authorization."]]],["This document details how to declare an app's Safety Labels via a POST request to the Google Android Publisher API. The request is sent to a specific URL using the app's package name as a path parameter. The required request body is a JSON object containing a `safetyLabels` field. This field must hold a string that represents data from the CSV file containing the Safety Labels declaration and its format must be compliant with google help center documentation. The API request require `androidpublisher` scope. A successful response returns an empty body.\n"]]