# Method: services.consumerQuotaMetrics.importProducerOverrides

- [HTTP request](https://docs.cloud.google.com/service-infrastructure/docs/service-consumer-management/reference/rest/v1beta1/services.consumerQuotaMetrics/importProducerOverrides#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/service-infrastructure/docs/service-consumer-management/reference/rest/v1beta1/services.consumerQuotaMetrics/importProducerOverrides#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/service-infrastructure/docs/service-consumer-management/reference/rest/v1beta1/services.consumerQuotaMetrics/importProducerOverrides#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/service-infrastructure/docs/service-consumer-management/reference/rest/v1beta1/services.consumerQuotaMetrics/importProducerOverrides#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/service-infrastructure/docs/service-consumer-management/reference/rest/v1beta1/services.consumerQuotaMetrics/importProducerOverrides#body.response_body)
- [Authorization Scopes](https://docs.cloud.google.com/service-infrastructure/docs/service-consumer-management/reference/rest/v1beta1/services.consumerQuotaMetrics/importProducerOverrides#body.aspect)
- [OverrideInlineSource](https://docs.cloud.google.com/service-infrastructure/docs/service-consumer-management/reference/rest/v1beta1/services.consumerQuotaMetrics/importProducerOverrides#OverrideInlineSource)
  - [JSON representation](https://docs.cloud.google.com/service-infrastructure/docs/service-consumer-management/reference/rest/v1beta1/services.consumerQuotaMetrics/importProducerOverrides#OverrideInlineSource.SCHEMA_REPRESENTATION)
- [Try it!](https://docs.cloud.google.com/service-infrastructure/docs/service-consumer-management/reference/rest/v1beta1/services.consumerQuotaMetrics/importProducerOverrides#try-it)

Create or update multiple producer overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.

### HTTP request

`POST https://serviceconsumermanagement.googleapis.com/v1beta1/{parent=services/*/*/*}/consumerQuotaMetrics:importProducerOverrides`

The URL uses [gRPC Transcoding](https://github.com/googleapis/googleapis/blob/master/google/api/http.proto) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` The resource name of the consumer. An example name would be: `services/compute.googleapis.com/projects/123` Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource `parent`: - `serviceconsumermanagement.quota.update` |

### Request body

The request body contains data with the following structure:

| JSON representation ||
|---|---|
| ``` { "force": boolean, "inlineSource": { object (`https://docs.cloud.google.com/service-infrastructure/docs/service-consumer-management/reference/rest/v1beta1/services.consumerQuotaMetrics/importProducerOverrides#OverrideInlineSource`) } } ``` |

| Fields ||
|---|---|
| `force` | `boolean` Whether to force the creation of the quota overrides. If creating an override would cause the effective quota for the consumer to decrease by more than 10 percent, the call is rejected, as a safety measure to avoid accidentally decreasing quota too quickly. Setting the force parameter to true ignores this restriction. |
| `inlineSource` | ``object (`https://docs.cloud.google.com/service-infrastructure/docs/service-consumer-management/reference/rest/v1beta1/services.consumerQuotaMetrics/importProducerOverrides#OverrideInlineSource`)`` The import data is specified in the request message itself |

### Response body

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

### Authorization Scopes

Requires the following OAuth scope:

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

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

## OverrideInlineSource

Import data embedded in the request message

| JSON representation ||
|---|---|
| ``` { "overrides": [ { object (`https://docs.cloud.google.com/service-infrastructure/docs/service-consumer-management/reference/rest/v1beta1/services.consumerQuotaMetrics.limits.producerOverrides#QuotaOverride`) } ] } ``` |

| Fields ||
|---|---|
| `overrides[]` | ``object (`https://docs.cloud.google.com/service-infrastructure/docs/service-consumer-management/reference/rest/v1beta1/services.consumerQuotaMetrics.limits.producerOverrides#QuotaOverride`)`` The overrides to create. Each override must have a value for 'metric' and 'unit', to specify which metric and which limit the override should be applied to. |

## Try it!