Method: projects.locations.conversations.sample

Samples conversations based on user configuration and handles the sampled conversations for different use cases.

HTTP request

POST https://{endpoint}/v1/{parent=projects/*/locations/*}/conversations:sample

Where {endpoint} is one of the supported service endpoints.

The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource of the dataset.

Request body

The request body contains data with the following structure:

JSON representation
{
  "sampleRule": {
    object (SampleRule)
  },

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "destinationDataset": {
    object (Dataset)
  }
  // End of mutually exclusive fields.
}
Fields
sampleRule

object (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

object (Dataset)

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.list
  • contactcenterinsights.conversations.list

For more information, see the IAM documentation.