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

## Resource: Apk

Information about an APK. The resource for ApksService.

| JSON representation |
|---|
| ``` { "versionCode": integer, "binary": { object (`https://developers.google.com/android-publisher/api-ref/rest/v3/edits.apks#ApkBinary`) } } ``` |

| Fields ||
|---|---|
| `versionCode` | `integer` The version code of the APK, as specified in the manifest file. |
| `binary` | ``object (`https://developers.google.com/android-publisher/api-ref/rest/v3/edits.apks#ApkBinary`)`` Information about the binary payload of this APK. |

## ApkBinary

Represents the binary payload of an APK.

| JSON representation |
|---|
| ``` { "sha1": string, "sha256": string } ``` |

| Fields ||
|---|---|
| `sha1` | `string` A sha1 hash of the APK payload, encoded as a hex string and matching the output of the sha1sum command. |
| `sha256` | `string` A sha256 hash of the APK payload, encoded as a hex string and matching the output of the sha256sum command. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/android-publisher/api-ref/rest/v3/edits.apks/addexternallyhosted` | Creates a new APK without uploading the APK itself to Google Play, instead hosting the APK at a specified URL. |
| ### `https://developers.google.com/android-publisher/api-ref/rest/v3/edits.apks/list` | Lists all current APKs of the app and edit. |
| ### `https://developers.google.com/android-publisher/api-ref/rest/v3/edits.apks/upload` | Uploads an APK and adds to the current edit. |

## Error codes

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

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