Method: projects.locations.insightsdata.export

Export insights data to a destination defined in the request body.

HTTP request

POST https://{endpoint}/v1/{parent=projects/*/locations/*}/insightsdata:export

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

The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource to export data from.

Request body

The request body contains data with the following structure:

JSON representation
{
  "filter": string,
  "kmsKey": string,
  "writeDisposition": enum (WriteDisposition),
  "exportSchemaVersion": enum (ExportSchemaVersion),

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

string

A filter to reduce results to a specific subset. Useful for exporting conversations with specific properties.

kmsKey

string

A fully qualified KMS key name for BigQuery tables protected by CMEK. Format: projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/cryptoKeyVersions/{version}

writeDisposition

enum (WriteDisposition)

Options for what to do if the destination table already exists.

exportSchemaVersion

enum (ExportSchemaVersion)

Optional. Version of the export schema.

Exporter destination. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
bigQueryDestination

object (BigQueryDestination)

Specified if sink is a BigQuery table.

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.