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

Request

HTTP request

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

Parameters

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.

Authorization

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

Scope
https://www.googleapis.com/auth/androidpublisher

Request body

Do not supply a request body with this method.

Response

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

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