Method: edits.expansionfiles.patch
Исправляет конфигурацию файла расширения APK для ссылки на файл расширения другого APK. Чтобы добавить новый файл расширения, используйте метод расширенияfiles.upload.
HTTP-запрос
PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
package Name | string Имя пакета приложения. |
edit Id | string Идентификатор редактирования. |
apk Version Code | integer Код версии APK, конфигурация файла расширения которого считывается или изменяется. |
expansion File Type | enum ( ExpansionFileType ) Тип файла конфигурации файла расширения, который обновляется. |
Тело запроса
Тело запроса содержит экземпляр ExpansionFile
.
Тело ответа
В случае успеха тело ответа содержит экземпляр ExpansionFile
.
Области авторизации
Требуется следующая область действия OAuth:
-
https://www.googleapis.com/auth/androidpublisher
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-12-18 UTC.
[null,null,["Последнее обновление: 2024-12-18 UTC."],[[["Patches an APK's expansion file configuration to reference another APK's expansion file, allowing you to link expansion files between APKs."],["Utilizes an HTTP PATCH request with specific path parameters to identify the target application, edit, APK version, and expansion file type."],["Requires an ExpansionFile object in the request body to specify the configuration details and returns the updated ExpansionFile in the response."],["To add a new expansion file instead of patching an existing one, you should use the expansionfiles.upload method."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope for access."]]],["This API allows patching an APK's expansion file configuration to point to another APK's expansion file. The HTTP request uses `PATCH` to update at a specific URL with path parameters: `packageName`, `editId`, `apkVersionCode`, and `expansionFileType`. The request and response bodies use the `ExpansionFile` format. The process needs authorization with the `https://www.googleapis.com/auth/androidpublisher` OAuth scope. New expansion files must be added via the `expansionfiles.upload` method.\n"]]