{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-chrome/json-schema/google-chrome-google-chrome-policy-versions-v1-batch-modify-org-unit-policies-request-schema.json",
  "title": "GoogleChromePolicyVersionsV1BatchModifyOrgUnitPoliciesRequest",
  "description": "Request message for modifying multiple policy values for a specific target.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-chrome-chromepolicy-customers-api-openapi.yml#/components/schemas/GoogleChromePolicyVersionsV1BatchModifyOrgUnitPoliciesRequest",
  "properties": {
    "requests": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GoogleChromePolicyVersionsV1ModifyOrgUnitPolicyRequest"
      },
      "description": "List of policies to modify as defined by the `requests`. All requests in the list must follow these restrictions: 1. All schemas in the list must have the same root namespace. 2. All `policyTargetKey.targetResource` values must point to an org unit resource. 3. All `policyTargetKey` values must have the same key names in the ` additionalTargetKeys`. This also means if one of the targets has an empty `additionalTargetKeys` map, all of the targets must have an empty `additionalTargetKeys` map. 4. No two modification requests can reference the same `policySchema` + ` policyTargetKey` pair. "
    }
  },
  "type": "object",
  "$defs": {
    "GoogleChromePolicyVersionsV1ModifyOrgUnitPolicyRequest": {
      "properties": {
        "policyTargetKey": {
          "$ref": "#/$defs/GoogleChromePolicyVersionsV1PolicyTargetKey",
          "description": "Required. The key of the target for which we want to modify a policy. The target resource must point to an Org Unit."
        },
        "updateMask": {
          "type": "string",
          "description": "Required. Policy fields to update. Only fields in this mask will be updated; other fields in `policy_value` will be ignored (even if they have values). If a field is in this list it must have a value in 'policy_value'.",
          "format": "google-fieldmask"
        },
        "policyValue": {
          "$ref": "#/$defs/GoogleChromePolicyVersionsV1PolicyValue",
          "description": "The new value for the policy."
        }
      },
      "type": "object",
      "description": "Request parameters for modifying a policy value for a specific org unit target."
    },
    "GoogleChromePolicyVersionsV1PolicyTargetKey": {
      "properties": {
        "targetResource": {
          "type": "string",
          "description": "The target resource on which this policy is applied. The following resources are supported: * Organizational Unit (\"orgunits/{orgunit_id}\") * Group (\"groups/{group_id}\")"
        },
        "additionalTargetKeys": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "description": "Map containing the additional target key name and value pairs used to further identify the target of the policy."
        }
      },
      "type": "object",
      "description": "The key used to identify the target on which the policy will be applied."
    },
    "GoogleChromePolicyVersionsV1PolicyValue": {
      "properties": {
        "policySchema": {
          "type": "string",
          "description": "The fully qualified name of the policy schema associated with this policy."
        },
        "value": {
          "additionalProperties": {
            "description": "Properties of the object."
          },
          "type": "object",
          "description": "The value of the policy that is compatible with the schema that it is associated with."
        }
      },
      "type": "object",
      "description": "A particular value for a policy managed by the service."
    }
  }
}