v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-137790167.2 KB
devices

Updates the device policy. To ensure the policy is properly enforced, you need to prevent unmanaged accounts from accessing Google Play by setting the allowed_accounts in the managed configuration for the Google Play package. See restrict accounts in Google Play. When provisioning a new device, you should set the device policy using this method before adding the managed Google Play Account to the device, otherwise the policy will not be applied for a short period of time after adding the account to the device.

put/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}

Path parameters

enterpriseIdstring required

The ID of the enterprise.

userIdstring required

The ID of the user.

deviceIdstring required

The ID of the device.

Query parameters

updateMaskstring

Mask that identifies which fields to update. If not set, all modifiable fields will be modified. When set in a query parameter, this field should be specified as updateMask=<field1>,<field2>,...

Request body

androidIdstring

The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, "123456789abcdef0".

managementType'managedDevice' | 'managedProfile' | 'containerApp' | 'unmanagedProfile'

Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. Possible values include: - "managedDevice", a device that has the EMM's device policy controller (DPC) as the device owner. - "managedProfile", a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC. - "containerApp", no longer used (deprecated). - "unmanagedProfile", a device that has been allowed (by the domain's admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC.

retailBrandstring

Retail brand for the device, if set. See android.os.Build.BRAND

devicestring

The internal hardware codename of the device. This comes from android.os.Build.DEVICE. (field named "device" per logs/wireless/android/android_checkin.proto)

latestBuildFingerprintstring

The build fingerprint of the device if known.

modelstring

The model name of the device. This comes from android.os.Build.MODEL.

productstring

The product name of the device. This comes from android.os.Build.PRODUCT.

sdkVersioninteger

API compatibility version.

makerstring

The manufacturer of the device. This comes from android.os.Build.MANUFACTURER.

Response

Successful response