AI-generated Key Takeaways
- 
          The modifyPolicyApplicationsmethod updates or creates applications within a policy using a POST request to a specified URL.
- 
          The request requires a nameparameter to identify the target policy and a request body containing a list ofApplicationPolicyChangeobjects.
- 
          The response body contains the updated policy object. 
- 
          This method requires the https://www.googleapis.com/auth/androidmanagementOAuth scope.
- 
          An ApplicationPolicyChangeobject specifies anApplicationPolicyto update or add and an optionalupdateMaskto indicate which fields to modify.
- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- ApplicationPolicyChange
- Try it!
Updates or creates applications in a policy.
HTTP request
POST https://androidmanagement.googleapis.com/v1/{name=enterprises/*/policies/*}:modifyPolicyApplications
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| name | 
 Required. The name of the  | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| {
  "changes": [
    {
      object ( | 
| Fields | |
|---|---|
| changes[] | 
 Required. The changes to be made to the ApplicationPolicy objects. There must be at least one  | 
Response body
Response to a request to update or create ApplicationPolicy objects in the given policy.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "policy": {
    object ( | 
| Fields | |
|---|---|
| policy | 
 The updated policy. | 
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/androidmanagement
For more information, see the OAuth 2.0 Overview.
ApplicationPolicyChange
A change to be made to a single ApplicationPolicy object.
| JSON representation | 
|---|
| {
  "application": {
    object ( | 
| Fields | |
|---|---|
| application | 
 If  | 
| updateMask | 
 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:  | 
