- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- ExternallyHostedApk
- UsesPermission
- Try it!
Creates a new APK without uploading the APK itself to Google Play, instead hosting the APK at a specified URL. This function is only available to organizations using Managed Play whose application is configured to restrict distribution to the organizations.
HTTP request
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
packageName |
Package name of the app. |
editId |
Identifier of the edit. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"externallyHostedApk": {
object ( |
Fields | |
---|---|
externallyHostedApk |
The definition of the externally-hosted APK and where it is located. |
Response body
Response for creating a new externally hosted APK.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"externallyHostedApk": {
object ( |
Fields | |
---|---|
externallyHostedApk |
The definition of the externally-hosted APK and where it is located. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/androidpublisher
ExternallyHostedApk
Defines an APK available for this application that is hosted externally and not uploaded to Google Play. This function is only available to organizations using Managed Play whose application is configured to restrict distribution to the organizations.
JSON representation |
---|
{
"packageName": string,
"applicationLabel": string,
"versionCode": integer,
"versionName": string,
"fileSize": string,
"fileSha1Base64": string,
"fileSha256Base64": string,
"iconBase64": string,
"minimumSdk": integer,
"certificateBase64s": [
string
],
"externallyHostedUrl": string,
"maximumSdk": integer,
"nativeCodes": [
string
],
"usesFeatures": [
string
],
"usesPermissions": [
{
object ( |
Fields | |
---|---|
packageName |
The package name. |
applicationLabel |
The application label. |
versionCode |
The version code of this APK. |
versionName |
The version name of this APK. |
fileSize |
The file size in bytes of this APK. |
fileSha1Base64 |
The sha1 checksum of this APK, represented as a base64 encoded byte array. |
fileSha256Base64 |
The sha256 checksum of this APK, represented as a base64 encoded byte array. |
iconBase64 |
The icon image from the APK, as a base64 encoded byte array. |
minimumSdk |
The minimum SDK targeted by this APK. |
certificateBase64s[] |
A certificate (or array of certificates if a certificate-chain is used) used to sign this APK, represented as a base64 encoded byte array. |
externallyHostedUrl |
The URL at which the APK is hosted. This must be an https URL. |
maximumSdk |
The maximum SDK supported by this APK (optional). |
nativeCodes[] |
The native code environments supported by this APK (optional). |
usesFeatures[] |
The features required by this APK (optional). |
usesPermissions[] |
The permissions requested by this APK. |
UsesPermission
A permission used by this APK.
JSON representation |
---|
{ "name": string, "maxSdkVersion": integer } |
Fields | |
---|---|
name |
The name of the permission requested. |
maxSdkVersion |
Optionally, the maximum SDK version for which the permission is required. |