Method: edits.expansionfiles.upload

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

If successful, the response body contains data with the following structure:

Response for uploading an expansion file.

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

ExpansionFilesUploadRequestBody

The request body of an expansion file upload.

JSON representation
{
  "expansionFile": {
    object (ExpansionFile)
  }
}
Fields
expansionFile

object (ExpansionFile)

This field is ignored.