- [Resource: ExpansionFile](https://developers.google.com/android-publisher/api-ref/rest/v3/edits.expansionfiles#ExpansionFile)
  - [JSON representation](https://developers.google.com/android-publisher/api-ref/rest/v3/edits.expansionfiles#ExpansionFile.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/android-publisher/api-ref/rest/v3/edits.expansionfiles#METHODS_SUMMARY)

## Resource: ExpansionFile

An expansion file. The resource for ExpansionFilesService.

| JSON representation |
|---|
| ``` { "referencesVersion": integer, "fileSize": string } ``` |

| Fields ||
|---|---|
| `referencesVersion` | `integer` If set, this APK's expansion file references another APK's expansion file. The fileSize field will not be set. |
| `fileSize` | `string (https://developers.google.com/discovery/v1/type-format format)` If set, this field indicates that this APK has an expansion file uploaded to it: this APK does not reference another APK's expansion file. The field's value is the size of the uploaded expansion file in bytes. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/android-publisher/api-ref/rest/v3/edits.expansionfiles/get` | Fetches the expansion file configuration for the specified APK. |
| ### `https://developers.google.com/android-publisher/api-ref/rest/v3/edits.expansionfiles/patch` | Patches the APK's expansion file configuration to reference another APK's expansion file. |
| ### `https://developers.google.com/android-publisher/api-ref/rest/v3/edits.expansionfiles/update` | Updates the APK's expansion file configuration to reference another APK's expansion file. |
| ### `https://developers.google.com/android-publisher/api-ref/rest/v3/edits.expansionfiles/upload` | Uploads a new expansion file and attaches to the specified APK. |

## Error codes

The operations of this resource, return the following HTTP error codes:

| Error code | Reason | Description | Resolution |
|---|---|---|---|