Method: edits.expansionfiles.patch
修补相应 APK 的扩展文件配置以引用另一个 APK 的扩展文件。如需添加新的扩展文件,请使用 expansionfiles.upload 方法。
HTTP 请求
PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}
网址采用 gRPC 转码语法。
路径参数
参数 |
packageName |
string
应用的软件包名称。
|
editId |
string
编辑的标识符。
|
apkVersionCode |
integer
正在读取或修改的扩展文件配置所对应的 APK 版本代码。
|
expansionFileType |
enum (ExpansionFileType )
正在更新的扩展文件配置的文件类型。
|
请求正文
请求正文包含一个 ExpansionFile
实例。
响应正文
如果成功,则响应正文包含一个 ExpansionFile
实例。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/androidpublisher
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-17。
[null,null,["最后更新时间 (UTC):2024-12-17。"],[[["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"]]