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

**Full name**: projects.locations.instances.legacy.legacyUpdateAlert

Legacy endpoint for updating an alert.

### HTTP request

`POST https://{endpoint}/v1alpha/{instance}/legacy:legacyUpdateAlert`

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

### Path parameters

| Parameters ||
|---|---|
| `instance` | `string` Required. Chronicle instance this request is sent to. Format: projects/{project}/locations/{location}/instances/{instance} |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "alertId": string, "feedback": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacyUpdateAlert#LegacyFeedback`) }, "caseName": string, "responsePlatformInfo": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Collection#ResponsePlatformInfo`) } } ``` |

| Fields ||
|---|---|
| `alertId` | `string` Required. The id of the alert. |
| `feedback` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.legacy/legacyUpdateAlert#LegacyFeedback`)`` Required. The analyst-supplied feedback on the alert. |
| `caseName` | `string` Optional. The case name that the alert is associated with. |
| `responsePlatformInfo` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Collection#ResponsePlatformInfo`)`` Optional. The response platform info of the alert. |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Collection`.

### 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 `instance` resource:

- `chronicle.legacies.legacyUpdateAlert`

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

## LegacyFeedback

A piece of user feedback on an alert.

| JSON representation |
|---|
| ``` { "idpUserId": string, "createTime": string, "verdict": enum (`Verdict`), "reputation": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Reputation`), "confidenceScore": integer, "riskScore": integer, "disregarded": boolean, "severity": integer, "comment": string, "status": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Status`), "priority": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Priority`), "rootCause": string, "reason": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Reason`), "severityDisplay": string, "triageAgentInvestigationId": string, "userType": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/UserType`) } ``` |

| Fields ||
|---|---|
| `idpUserId` | `string` Readonly. The unique identifier supplied by the customer's identity provider (IDP) for the user that provided the feedback. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Readonly. The time when the user submitted the feedback. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `verdict` | ``enum (`Verdict`)`` A verdict on whether the finding reflects a security inc |
| `reputation` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Reputation`)`` A categorization of the finding as useful or not useful. |
| `confidenceScore` | `integer` Confidence score (0-100) of the finding. |
| `riskScore` | `integer` Risk score (0-100) of the finding. |
| `disregarded` | `boolean` Analyst disregard (or un-disregard) the event. |
| `severity` | `integer` Severity score (1-100) of the finding. |
| `comment` | `string` Analyst comment. |
| `status` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Status`)`` Alert status. |
| `priority` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Priority`)`` Alert priority. |
| `rootCause` | `string` Alert root cause. |
| `reason` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Reason`)`` Reason for closing an Alert. |
| `severityDisplay` | `string` Severity display name for UI and filtering. |
| `triageAgentInvestigationId` | `string` Output only. Investigation Id of the latest investigation performed by the Triage Agent on the alert. The Triage Agent is designed to autonomously investigate alerts and determine whether an alert needs to be escalated to a human while providing transparency about the actions it took as part of its investigation. |
| `userType` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/UserType`)`` Output only. Type of user that submitted or updated the feedback. This field is used to distinguish between the feedback submitted by a human analyst and an AI agent. By default, the user is assumed to be a human analyst. |