Edits.expansionfiles: upload

Requires authorization

Uploads and attaches a new Expansion File to the APK specified.

This method supports an /upload URI and accepts uploaded media with the following characteristics:

  • Maximum file size: 2048MB
  • Accepted Media MIME types: application/octet-stream


HTTP request

POST https://www.googleapis.com/upload/androidpublisher/v2/applications/packageName/edits/editId/apks/apkVersionCode/expansionFiles/expansionFileType


Parameter name Value Description
Path parameters
apkVersionCode integer The version code of the APK whose Expansion File configuration is being read or modified.
editId string Unique identifier for this edit.
expansionFileType string

Acceptable values are:
  • "main"
  • "patch"
packageName string Unique identifier for the Android app that is being updated; for example, "com.spiffygame".
Required query parameters
uploadType string The type of upload request to the /upload URI. Acceptable values are:
  • media - Simple upload. Upload the media data.
  • resumable - Resumable upload. Upload the file in a resumable fashion, using a series of at least two requests.


This request requires authorization with the following scope (read more about authentication and authorization).


Request body

Do not supply a request body with this method.


If successful, this method returns a response body with the following structure:

  "expansionFile": edits.expansionfiles Resource
Property name Value Description Notes
expansionFile nested object