- 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 | |
---|---|
package |
Package name of the app. |
edit |
Identifier of the edit. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"externallyHostedApk": {
object ( |
Fields | |
---|---|
externally |
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 | |
---|---|
externally |
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 | |
---|---|
package |
The package name. |
application |
The application label. |
version |
The version code of this APK. |
version |
The version name of this APK. |
file |
The file size in bytes of this APK. |
file |
The sha1 checksum of this APK, represented as a base64 encoded byte array. |
file |
The sha256 checksum of this APK, represented as a base64 encoded byte array. |
icon |
The icon image from the APK, as a base64 encoded byte array. |
minimum |
The minimum SDK targeted by this APK. |
certificate |
A certificate (or array of certificates if a certificate-chain is used) used to sign this APK, represented as a base64 encoded byte array. |
externally |
The URL at which the APK is hosted. This must be an https URL. |
maximum |
The maximum SDK supported by this APK (optional). |
native |
The native code environments supported by this APK (optional). |
uses |
The features required by this APK (optional). |
uses |
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. |
max |
Optionally, the maximum SDK version for which the permission is required. |