- [HTTP request](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/consumerPolicies/patch#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/consumerPolicies/patch#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/consumerPolicies/patch#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/consumerPolicies/patch#body.request_body)
- [Response body](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/consumerPolicies/patch#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/consumerPolicies/patch#body.aspect)
- [Try it!](https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/consumerPolicies/patch#try-it)

Update the consumer policy of a resource.

### HTTP request

`PATCH https://serviceusage.googleapis.com/v2beta/{consumerPolicy.name=*/*/consumerPolicies/*}`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `consumerPolicy.name` | `string` Output only. The resource name of the policy. Only the `default` policy is supported: `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, `organizations/12345/consumerPolicies/default`. |

### Query parameters

| Parameters ||
|---|---|
| `force` | `boolean` This flag will skip the breaking change detections. |
| `validateOnly` | `boolean` If set, validate the request and preview the result but do not actually commit it. |

### Request body

The request body contains an instance of `https://docs.cloud.google.com/service-usage/docs/reference/rest/v2beta/consumerPolicies#ConsumerPolicy`.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/service-usage/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation`.

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/service.management`
- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).