Method: projects.locations.datasets.bulkUploadFeedbackLabels

从外部来源批量上传反馈标签。目前支持为 Quality AI 示例对话添加标签。

HTTP 请求

POST https://{endpoint}/v1/{parent=projects/*/locations/*/datasets/*}:bulkUploadFeedbackLabels

其中 {endpoint} 是受支持的服务端点之一。

网址使用 gRPC 转码语法。

路径参数

参数
parent

string

必需。新反馈标签的父级资源。

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "validateOnly": boolean,

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "gcsSource": {
    object (GcsSource)
  },
  "sheetsSource": {
    object (SheetsSource)
  }
  // End of mutually exclusive fields.
}
字段
validateOnly

boolean

可选。如果设置了此参数,系统将不会上传标签,而是会验证标签。如果未设置,则默认行为是在验证完成后上传标签。

外部数据存储区的配置,其中包含将转换为 FeedbackLabels 的对象。以下是互斥字段的列表。在响应中,最多只能设置其中一个字段:
gcsSource

object (GcsSource)

Cloud Storage 存储桶来源。

sheetsSource

object (SheetsSource)

Google 表格文档来源。

互斥字段结束。

响应正文

如果成功,则响应正文包含一个 Operation 实例。

授权范围

需要以下 OAuth 范围:

  • https://www.googleapis.com/auth/cloud-platform

如需了解详情,请参阅 Authentication Overview。

IAM 权限

需要拥有 parent 资源的以下 IAM 权限:

  • contactcenterinsights.authorizedFeedbackLabels.upload
  • contactcenterinsights.datasetFeedbackLabels.upload
  • contactcenterinsights.feedbackLabels.upload

如需了解详情,请参阅 IAM 文档。