- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Samples conversations based on user configuration and handles the sampled conversations for different use cases.
HTTP request
POST https://{endpoint}/v1alpha1/{parent=projects/*/locations/*/datasets/*}/conversations:sample
Where {endpoint} is one of the supported service endpoints.
The URLs use gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The parent resource of the dataset. |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "sampleRule": { object ( |
| Fields | |
|---|---|
sampleRule |
Optional. The sample rule used for sampling conversations. |
| The destination of the sampled conversations. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
destinationDataset |
The dataset resource to copy the sampled conversations to. |
| 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.
IAM Permissions
Requires the following IAM permissions on the parent resource:
contactcenterinsights.datasetConversations.listcontactcenterinsights.conversations.list
For more information, see the IAM documentation.