Method: edits.expansionfiles.upload
Stay organized with collections
Save and categorize content based on your preferences.
Uploads a new expansion file and attaches to the specified APK.
HTTP request
- Upload URI, for media upload requests:
POST https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}
- Metadata URI, for metadata-only requests:
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
packageName |
string
Package name of the app.
|
editId |
string
Identifier of the edit.
|
apkVersionCode |
integer
The version code of the APK whose expansion file configuration is being read or modified.
|
expansionFileType |
enum (ExpansionFileType )
The file type of the expansion file configuration which is being updated.
|
Request body
The request body contains an instance of ExpansionFilesUploadRequestBody
.
Response body
Response for uploading an expansion file.
If successful, the response body contains data with the following structure:
JSON representation |
{
"expansionFile": {
object (ExpansionFile )
}
} |
Fields |
expansionFile |
object (ExpansionFile )
The uploaded expansion file configuration.
|
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/androidpublisher
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-17 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-17 UTC."],[[["Uploads a new expansion file and attaches it to a specified Android application package (APK)."],["Requires providing package name, edit ID, APK version code, and expansion file type."],["Supports two request types: one for uploading media and another for metadata."],["Upon successful upload, the API returns the uploaded expansion file configuration details."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document details how to upload an expansion file to an Android app. Key actions include sending a `POST` HTTP request to either a media or metadata URI, specifying `packageName`, `editId`, `apkVersionCode`, and `expansionFileType` as path parameters. The request body, an `ExpansionFilesUploadRequestBody` instance, is used for uploading. A successful response includes an `ExpansionFile` object within a JSON structure. The process requires the `androidpublisher` authorization scope.\n"]]