Patch
|
|||||
|
|
Requests to install the latest version of an app to a device. If the app is already installed, then it is updated to the latest version if necessary. This method supports patch semantics
Authorization
To use this building block you will have to grant access to at least one of the following scopes:
- Manage corporate Android devices
Input
This building block consumes 8 input parameters
Name | Format | Description |
---|---|---|
enterpriseId Required |
STRING |
The ID of the enterprise |
userId Required |
STRING |
The ID of the user |
deviceId Required |
STRING |
The Android ID of the device |
installId Required |
STRING |
The ID of the product represented by the install, e.g. "app:com.google.android.gm" |
installState |
STRING |
Install state. The state "installPending" means that an install request has recently been made and download to the device is in progress. The state "installed" means that the app has been installed. This field is read-only |
kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "androidenterprise#install" |
productId |
STRING |
The ID of the product that the install is for. For example, "app:com.google.android.gm" |
versionCode |
INTEGER |
The version of the installed product. Guaranteed to be set only if the install state is "installed" |
= Parameter name
= Format
enterpriseId STRING Required The ID of the enterprise |
userId STRING Required The ID of the user |
deviceId STRING Required The Android ID of the device |
installId STRING Required The ID of the product represented by the install, e.g. "app:com.google.android.gm" |
installState STRING Install state. The state "installPending" means that an install request has recently been made and download to the device is in progress. The state "installed" means that the app has been installed. This field is read-only |
kind STRING Identifies what kind of resource this is. Value: the fixed string "androidenterprise#install" |
productId STRING The ID of the product that the install is for. For example, "app:com.google.android.gm" |
versionCode INTEGER The version of the installed product. Guaranteed to be set only if the install state is "installed" |
Output
This building block provides 4 output parameters
Name | Format | Description |
---|---|---|
installState |
STRING |
Install state. The state "installPending" means that an install request has recently been made and download to the device is in progress. The state "installed" means that the app has been installed. This field is read-only |
kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "androidenterprise#install" |
productId |
STRING |
The ID of the product that the install is for. For example, "app:com.google.android.gm" |
versionCode |
INTEGER |
The version of the installed product. Guaranteed to be set only if the install state is "installed" |
= Parameter name
= Format
installState STRING Install state. The state "installPending" means that an install request has recently been made and download to the device is in progress. The state "installed" means that the app has been installed. This field is read-only |
kind STRING Identifies what kind of resource this is. Value: the fixed string "androidenterprise#install" |
productId STRING The ID of the product that the install is for. For example, "app:com.google.android.gm" |
versionCode INTEGER The version of the installed product. Guaranteed to be set only if the install state is "installed" |