Se ApplicationPolicy.packageName corrisponde a un oggetto ApplicationPolicy esistente all'interno di Policy in fase di modifica, l'oggetto verrà aggiornato. In caso contrario, verrà aggiunto alla fine di Policy.applications.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-26 UTC."],[],[],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ModifyPolicyApplicationsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [ApplicationPolicyChange](#ApplicationPolicyChange)\n - [JSON representation](#ApplicationPolicyChange.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nUpdates or creates applications in a policy.\n\nHTTP request\n\n`POST https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}:modifyPolicyApplications`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the [`Policy`](/android/management/reference/rest/v1/enterprises.policies#Policy) containing the [`ApplicationPolicy`](/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy) objects to be updated, in the form `enterprises/{enterpriseId}/policies/{policyId}`. |\n\nRequest body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"changes\": [ { object (/android/management/reference/rest/v1/enterprises.policies/modifyPolicyApplications#ApplicationPolicyChange) } ] } ``` |\n\n| Fields ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `changes[]` | `object (`[ApplicationPolicyChange](/android/management/reference/rest/v1/enterprises.policies/modifyPolicyApplications#ApplicationPolicyChange)`)` Required. The changes to be made to the ApplicationPolicy objects. There must be at least one `ApplicationPolicyChange`. |\n\nResponse body Response to a request to update or create ApplicationPolicy objects in the given policy.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------|\n| ``` { \"policy\": { object (/android/management/reference/rest/v1/enterprises.policies#Policy) } } ``` |\n\n| Fields ||\n|----------|--------------------------------------------------------------------------------------------------------------|\n| `policy` | `object (`[Policy](/android/management/reference/rest/v1/enterprises.policies#Policy)`)` The updated policy. |\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidmanagement`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2).\n\nApplicationPolicyChange A change to be made to a single ApplicationPolicy object.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"application\": { object (/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy) }, \"updateMask\": string } ``` |\n\n| Fields ||\n|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `application` | `object (`[ApplicationPolicy](/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy)`)` If [`ApplicationPolicy.packageName`](/android/management/reference/rest/v1/enterprises.policies#ApplicationPolicy.FIELDS.package_name) matches an existing ApplicationPolicy object within the [`Policy`](/android/management/reference/rest/v1/enterprises.policies#Policy) being modified, then that object will be updated. Otherwise, it will be added to the end of the [`Policy.applications`](/android/management/reference/rest/v1/enterprises.policies#Policy.FIELDS.applications). |\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` The field mask indicating the fields to update. If omitted, all modifiable fields are updated. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |"]]