- [HTTP request](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/projects.locations/testCorrelationConfig.md.txt#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/projects.locations/testCorrelationConfig.md.txt#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/projects.locations/testCorrelationConfig.md.txt#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/projects.locations/testCorrelationConfig.md.txt#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/projects.locations/testCorrelationConfig.md.txt#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/projects.locations/testCorrelationConfig.md.txt#body.aspect)
- [Conversations](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/projects.locations/testCorrelationConfig.md.txt#Conversations)
  - [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/projects.locations/testCorrelationConfig.md.txt#Conversations.SCHEMA_REPRESENTATION)
- [Try it!](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/v1/projects.locations/testCorrelationConfig.md.txt#try-it)

Tests correlation config on a conversation.

### HTTP request

`POST https://{endpoint}/v1/{location=projects/*/locations/*}:testCorrelationConfig`

Where `{endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest.md.txt#rest_endpoints).

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

### Path parameters

| Parameters ||
|---|---|
| `location` | `string` Required. The location to test correlation config. Format: projects/{project}/locations/{location} |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "correlationConfig": { object (`CorrelationConfig`) }, "maxSampleCount": integer, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "filter": string, "conversations": { object (`Conversations`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `correlationConfig` | ``object (`CorrelationConfig`)`` Required. The correlation config to test. |
| `maxSampleCount` | `integer` Optional. The maximum number of conversations to sample when using the `filter`. If not set, defaults to 1000. Values greater than 1000 are coerced to 1000. This field is ignored if `conversations` is provided. |
| Data to test the correlation config against. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `filter` | `string` Optional. Filter to select conversations to test correlation against. Conversations matching this filter will be sampled based on start time. The most recent `maxSampleCount` conversations will be selected. If no conversations match the filter, the request will fail with an `INVALID_ARGUMENT` error. |
| `conversations` | ``object (`Conversations`)`` Optional. A list of conversations to test against. |
| End of mutually exclusive fields. ||

### Response body

If successful, the response body contains an instance of `Operation`.

### 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.md.txt#authorization-gcp).

## Conversations

Wrapper for a list of conversations.

| JSON representation |
|---|
| ``` { "conversations": [ { object (`Conversation`) } ] } ``` |

| Fields ||
|---|---|
| `conversations[]` | ``object (`Conversation`)`` Optional. The conversations. |