Stay organized with collections
Save and categorize content based on your preferences.
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.
Request
HTTP request
PUT https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId/devices/deviceId
Parameters
Parameter name
Value
Description
Path parameters
deviceId
string
The ID of the device.
enterpriseId
string
The ID of the enterprise.
userId
string
The ID of the user.
Optional query parameters
updateMask
string
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>,...
Authorization
This request requires authorization with the following scope:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["This operation updates a device's policy, requiring authorization with the `https://www.googleapis.com/auth/androidenterprise` scope."],["To enforce the policy effectively, it's crucial to restrict unmanaged accounts from accessing Google Play by configuring `allowed_accounts` in the managed configuration for the Google Play package."],["You can specify which fields to update using the `updateMask` query parameter, otherwise all modifiable fields will be changed."],["The request utilizes a PUT method and targets a specific URL structure including enterprise ID, user ID, and device ID."],["A successful operation returns a `Devices` resource, reflecting the updated device policy information."]]],[]]