---
title: "Update the Google EMM Policy details for a specific device."
method: PUT
path: "/v2/devices/{deviceId}/google-accounts/policy/"
tags: ["device_Device Enrollment in EMM"]
---

# Update the Google EMM Policy details for a specific device.

`PUT /v2/devices/{deviceId}/google-accounts/policy/`

## Path parameters

- `deviceId` string, uuid, required

## Query parameters

- `is_provisioning` string
- `is_converging` string

## Request body

- DeviceGoogleEMMDevicePolicyRequest
  - `applications` DeviceGoogleApplication[]
    - `product_id` string — The unique product ID in the format of app:<package_name>.
    - `mcm_id` string — The MCM ID if required for configuration management.
    - `app_action` 'install' | 'uninstall' — Action to be performed on the app, either 'install' or 'uninstall'.

## Response `200`

Successfully updated the Google EMM policy details for the specified device.

- object
  - `content` DeviceGoogleEMMDevice
    - `android_id` string — Unique identifier for the Android device.
    - `management_type` string — The management type of the device (e.g., managedDevice).
    - `policy` DevicePolicy
      - `auto_update_policy` string — Defines the auto-update policy for the device.
      - `device_report_policy` string — Policy for device report generation.
      - `product_availability_policy` string — Defines the product availability policy.
      - `product_policy` DeviceProductPolicy[]
        - `auto_update_mode` string — Mode of auto-updating the product.
        - `product_id` string — Unique identifier for the product.
        - `auto_install_policy` DeviceAutoInstallPolicy
          - `auto_install_constraint` DeviceAutoInstallConstraint[] — Constraints for auto-installing the product.
            - `charging_state_constraint` string — Constraint on the device's charging state for installation.
            - `device_idle_state_constraint` string — Constraint on the device's idle state for installation.
            - `network_type_constraint` string — Network type required for installation.
          - `auto_install_mode` string — Mode for auto-installation.
          - `auto_install_priority` integer — Priority of the auto-installation.
        - `managed_configuration` DeviceManagedConfiguration
          - `configuration_variables` object — Variables used for managed configurations.
            - `mcm_id` string — MCM ID required for configuration management.
            - `variable_set` DeviceVariableSet[] — Set of configuration variables and their values.
              - …
          - `kind` string — Type of managed configuration.

## Other responses

- `400` — Bad request due to invalid input.
- `401` — Unauthorized access.
- `404` — Device not found for the provided deviceId.
- `500` — Internal server error occurred while processing the request.

---

[API](https://skmtc.net/esper/apis/esper-api-reference.md) · [All operations](https://skmtc.net/esper/apis/esper-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/esper/esper-api-reference/versions/e1f64cbb488e/schema)
