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

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

instances.verifyReferenceList validates list content and returns line errors, if any.

### HTTP request

`POST https://{endpoint}/v1/{instance}:verifyReferenceList`

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. The name of the parent resource, which is the SecOps instance associated with the request. Format: `projects/{project}/locations/{location}/instances/{instance}` |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "syntaxType": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.referenceLists#ReferenceListSyntaxType`), "entries": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.referenceLists#ReferenceListEntry`) } ] } ``` |

| Fields ||
|---|---|
| `syntaxType` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.referenceLists#ReferenceListSyntaxType`)`` Required. Type (format) of list lines. |
| `entries[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances.referenceLists#ReferenceListEntry`)`` Required. The entries of the reference list. Each line may be either an item in the list or a comment. |

### Response body

VerifyListResponse response message.

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

| JSON representation |
|---|
| ``` { "success": boolean, "errors": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances/verifyReferenceList#ReferenceListError`) } ] } ``` |

| Fields ||
|---|---|
| `success` | `boolean` Validity of list - true if no errors found. |
| `errors[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/projects.locations.instances/verifyReferenceList#ReferenceListError`)`` Line-level errors causing the list to be invalid. |

### 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.referenceLists.verifyReferenceList`

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

## ReferenceListError

The error generated when verifying the reference list.

| JSON representation |
|---|
| ``` { "lineNumber": integer, "errorMessage": string } ``` |

| Fields ||
|---|---|
| `lineNumber` | `integer` 1-indexed line number where the error occurs. General list errors are indexed at -1. |
| `errorMessage` | `string` Message explaining why the line is invalid. |