---
title: "POST /v1/customers/{customersId}/policies/groups:updateGroupPriorityOrdering"
method: POST
path: "/v1/customers/{customersId}/policies/groups:updateGroupPriorityOrdering"
tags: ["customers"]
---

# POST /v1/customers/{customersId}/policies/groups:updateGroupPriorityOrdering

`POST /v1/customers/{customersId}/policies/groups:updateGroupPriorityOrdering`

## Request

- Base URL: `https://chromepolicy.googleapis.com`
- URL: `https://chromepolicy.googleapis.com/v1/customers/{customersId}/policies/groups:updateGroupPriorityOrdering`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/chrome.management.policy`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/chrome.management.policy`
- TypeScript: <https://skmtc.dev/google/apis/chromepolicy/docs/v1/customers/:customersId/policies/groups:updateGroupPriorityOrdering/post.ts> (a function with typed inputs; its response is checked against the schema)

Update a group priority ordering for an app. The target app must be supplied in `additionalTargetKeyNames` in the PolicyTargetKey. On failure the request will return the error details as part of the google.rpc.Status.

## Path parameters

- `customersId` string, required

## Request body

- GoogleChromePolicyVersionsV1UpdateGroupPriorityOrderingRequest: Request message for updating the group priority ordering of an app.
  - `groupIds` string[]: Required. The group IDs, in desired priority ordering.
  - `policyNamespace` string: The namespace of the policy type for the request.
  - `policySchema` string: The schema name of the policy for the request.
  - `policyTargetKey` GoogleChromePolicyVersionsV1PolicyTargetKey: The key used to identify the target on which the policy will be applied.
    - `additionalTargetKeys` object: Map containing the additional target key name and value pairs used to further identify the target of the policy.
    - `targetResource` string: The target resource on which this policy is applied. The following resources are supported: * Organizational Unit ("orgunits/{orgunit_id}") * Group ("groups/{group_id}")

## Response `200`

Successful response

- GoogleProtobufEmpty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

---

[API](https://skmtc.dev/google/apis/chromepolicy.md) - [All operations](https://skmtc.dev/google/apis/chromepolicy/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/chromepolicy/revisions/c9f2e6e8732d?raw)
