- [HTTP request](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances/patch#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances/patch#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances/patch#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances/patch#body.request_body)
- [Response body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances/patch#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances/patch#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances/patch#body.aspect_1)

**Full name**: projects.locations.instances.patch

Updates an Instance.

### HTTP request

`PATCH https://{endpoint}/v1alpha/{instance.name}`

Where `{endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/chronicle/docs/reference/rest#rest_endpoints).

### Path parameters

| Parameters ||
|---|---|
| `instance.name` | `string` Identifier. The resource name of this instance. Format: `projects/{project}/locations/{location}/instances/{instance}` |

### Query parameters

| Parameters ||
|---|---|
| `updateMask` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#field-mask` format)`` Optional. The list of fields to update. 1. If `updateMask` is not included in the request, an error will be returned. 2. If `updateMask` is present and `paths` includes only `*`, then all the fields which are supported by `instances.patch` will be updated irrespective of whether they are present in the request or not. Fields which are not present in the request will be set to `nil`/`false` value. 3. To update partial flags in `instanceConfig`, the relevant flags should be provided like `instanceConfig.<flag_name>` for each flag. For example, to update `secopsUiEnabled` flag, `instanceConfig.secops_ui_enabled` should be provided in the `paths` of the `updateMask`. If the flag is present in `paths` but not present in the request, it will be set to `false`. 4. If only `instanceConfig` is provided in `paths`, all the flags in `instanceConfig` will be updated and those flags which are not present in the request will be set to `false`. This is a comma-separated list of fully qualified names of fields. Example: `"user.displayName,photo"`. |

### Request body

The request body contains an instance of `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances#Instance`.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances#Instance`.

### Authorization scopes

Requires one of the following OAuth scopes:

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

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 `name` resource:

- `chronicle.instances.update`

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