Method: enterprises.policies.modifyPolicyApplications

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

string

Required. The name of the Policy containing the ApplicationPolicy objects to be updated, in the form enterprises/{enterpriseId}/policies/{policyId}.

Request body

The request body contains data with the following structure:

JSON representation
{
  "changes": [
    {
      object (ApplicationPolicyChange)
    }
  ]
}
Fields
changes[]

object (ApplicationPolicyChange)

Required. The changes to be made to the ApplicationPolicy objects. There must be at least one ApplicationPolicyChange.

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 (Policy)
  }
}
Fields
policy

object (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 (ApplicationPolicy)
  },
  "updateMask": string
}
Fields
application

object (ApplicationPolicy)

If ApplicationPolicy.packageName matches an existing ApplicationPolicy object within the Policy being modified, then that object will be updated. Otherwise, it will be added to the end of the Policy.applications.

updateMask

string (FieldMask 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".