Tests auto labeling rules against a conversation.
HTTP request
POST https://{endpoint}/v1/{parent=projects/*/locations/*}/autoLabelingRules:test
Where {endpoint} is one of the supported service endpoints.
The URLs use gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The parent project and location. Format: projects/{project}/locations/{location} |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "conversation": { object ( |
| Fields | |
|---|---|
conversation |
Required. Conversation data to test rules against. |
autoLabelingRule |
Required. The auto labeling rule to test. |
Response body
The response message for testing auto labeling rules.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{ "labelResult": string } |
| Fields | |
|---|---|
labelResult |
The result of the test auto labeling rule. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.