# Method: projects.locations.clients.changeConfig

- [HTTP request](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.clients/changeConfig#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.clients/changeConfig#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.clients/changeConfig#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.clients/changeConfig#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.clients/changeConfig#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.clients/changeConfig#body.ChangeCustomerConfigResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.clients/changeConfig#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.clients/changeConfig#body.aspect_1)
- [CustomerConfig](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.clients/changeConfig#CustomerConfig)
  - [JSON representation](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.clients/changeConfig#CustomerConfig.SCHEMA_REPRESENTATION)
- [Try it!](https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.clients/changeConfig#try-it)

Updates the client customer configuration for the given project and location resource name

### HTTP request

`POST https://integrations.googleapis.com/v1/{parent=projects/*/locations/*}/clients:changeConfig`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. Required: Format - projects/{project}/locations/{location} |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "updateMask": string, "customerConfig": { object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.clients/changeConfig#CustomerConfig`) } } ``` |

| Fields ||
|---|---|
| `updateMask` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#field-mask` format)`` Required. Field mask specifying the fields in the customer config that have been modified and must be updated. If absent or empty, no fields are updated. This is a comma-separated list of fully qualified names of fields. Example: `"user.displayName,photo"`. |
| `customerConfig` | ``object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.clients/changeConfig#CustomerConfig`)`` Optional. The customer configuration to be updated. |

### Response body

Response for the clients.changeConfig rpc

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "customerConfig": { object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.clients/changeConfig#CustomerConfig`) } } ``` |

| Fields ||
|---|---|
| `customerConfig` | ``object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/projects.locations.clients/changeConfig#CustomerConfig`)`` Required. The updated customer configuration. |

### Authorization scopes

Requires the following OAuth scope:

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

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

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:

- `integrations.authConfigs.update`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).

## CustomerConfig

Customer configuration information for the given client

| JSON representation |
|---|
| ``` { "enableManagedAiFeatures": boolean, "runAsServiceAccount": string, "enableVariableMasking": boolean, "enableHttpCall": boolean, "cloudKmsConfig": { object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/CloudKmsConfig`) } } ``` |

| Fields ||
|---|---|
| `enableManagedAiFeatures` | `boolean` Optional. Indicates if the client should be allowed to use managed AI features, i.e. using Cloud Companion APIs of the tenant project. This will allow the customers to use features like Troubleshooting, OpenAPI spec enrichment, etc. for free. |
| `runAsServiceAccount` | `string` Optional. Run-as service account to be updated for the provisioned client. |
| `enableVariableMasking` | `boolean` Optional. True if variable masking feature should be turned on for this region. |
| `enableHttpCall` | `boolean` Optional. Indicates if the client should be allowed to make HTTP calls. True if http call feature should be turned on for this region. |
| `cloudKmsConfig` | ``object (`https://docs.cloud.google.com/application-integration/docs/reference/rest/v1/CloudKmsConfig`)`` Optional. Cloud KMS config for Auth Module to encrypt/decrypt credentials. |