Method: edits.expansionfiles.update
更新此 APK 的扩展文件配置,以引用其他 APK 的扩展文件。要添加新的扩展文件,请使用 extensionfiles.upload 方法。
HTTP 请求
PUT 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-08-22。
[null,null,["最后更新时间 (UTC):2024-08-22。"],[[["This operation updates an existing APK expansion file configuration to reference another APK's expansion file within an app edit."],["It uses an HTTP PUT request with specific path parameters to identify the app, edit, APK version, and expansion file type."],["The request body requires an ExpansionFile object describing the desired configuration."],["A successful operation returns the updated ExpansionFile object in the response body."],["Authorization requires the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document outlines the process of updating an APK's expansion file configuration. It uses a PUT request to a specific URL, including package name, edit ID, APK version code, and expansion file type as path parameters. The request and response bodies both contain an `ExpansionFile` instance. The operation requires authorization via the `https://www.googleapis.com/auth/androidpublisher` OAuth scope and leverages gRPC Transcoding syntax. The content also mentions adding a new expansion file with `expansionfiles.upload`.\n"]]