{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-android/json-schema/google-android-customer-apply-configuration-request-schema.json",
  "title": "CustomerApplyConfigurationRequest",
  "description": "Request message for customer to assign a configuration to device.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-android-androiddeviceprovisioning-customers-api-openapi.yml#/components/schemas/CustomerApplyConfigurationRequest",
  "properties": {
    "device": {
      "$ref": "#/$defs/DeviceReference",
      "description": "Required. The device the configuration is applied to. There are custom validations in ApplyConfigurationRequestValidator"
    },
    "configuration": {
      "type": "string",
      "description": "Required. The configuration applied to the device in the format `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`."
    }
  },
  "type": "object",
  "$defs": {
    "DeviceIdentifier": {
      "properties": {
        "meid": {
          "type": "string",
          "description": "The device’s MEID number."
        },
        "imei2": {
          "description": "The device’s second IMEI number.",
          "type": "string"
        },
        "imei": {
          "description": "The device’s IMEI number. Validated on input.",
          "type": "string"
        },
        "deviceType": {
          "enum": [
            "DEVICE_TYPE_UNSPECIFIED",
            "DEVICE_TYPE_ANDROID",
            "DEVICE_TYPE_CHROME_OS"
          ],
          "description": "The type of the device",
          "type": "string"
        },
        "serialNumber": {
          "description": "The manufacturer's serial number for the device. This value might not be unique across different device models.",
          "type": "string"
        },
        "manufacturer": {
          "type": "string",
          "description": "The device manufacturer’s name. Matches the device's built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in [Android manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names)."
        },
        "chromeOsAttestedDeviceId": {
          "description": "An identifier provided by OEMs, carried through the production and sales process. Only applicable to Chrome OS devices.",
          "type": "string"
        },
        "model": {
          "type": "string",
          "description": "The device model's name. Allowed values are listed in [Android models](/zero-touch/resources/manufacturer-names#model-names) and [Chrome OS models](https://support.google.com/chrome/a/answer/10130175#identify_compatible)."
        },
        "meid2": {
          "description": "The device’s second MEID number.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers)."
    },
    "DeviceReference": {
      "description": "A `DeviceReference` is an API abstraction that lets you supply a _device_ argument to a method using one of the following identifier types: * A numeric API resource ID. * Real-world hardware IDs, such as IMEI number, belonging to the manufactured device. Methods that operate on devices take a `DeviceReference` as a parameter type because it's more flexible for the caller. To learn more about device identifiers, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers).",
      "type": "object",
      "properties": {
        "deviceId": {
          "description": "The ID of the device.",
          "type": "string",
          "format": "int64"
        },
        "deviceIdentifier": {
          "$ref": "#/$defs/DeviceIdentifier",
          "description": "The hardware IDs of the device."
        }
      }
    }
  }
}