Method: edits.expansionfiles.patch
Modyfikuje konfigurację pliku rozszerzenia pakietu APK, aby odwoływał się on do pliku rozszerzenia innego pakietu APK. Aby dodać nowy plik rozszerzenia, użyj metody expansionfiles.upload.
Żądanie HTTP
PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
packageName |
string
Nazwa pakietu aplikacji.
|
editId |
string
Identyfikator zmiany.
|
apkVersionCode |
integer
Kod wersji pliku APK, którego konfiguracja pliku rozszerzenia jest odczytywana lub modyfikowana.
|
expansionFileType |
enum (ExpansionFileType )
Typ pliku konfiguracji pliku rozszerzającego, który jest aktualizowany.
|
Treść żądania
Treść żądania zawiera wystąpienie elementu ExpansionFile
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu ExpansionFile
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/androidpublisher
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-12-17 UTC.
[null,null,["Ostatnia aktualizacja: 2024-12-17 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"]]