Method: projects.locations.datasets.bulkUploadFeedbackLabels

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

HTTP 请求

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

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

网址使用 gRPC 转码语法。

路径参数

参数
parent

string

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

请求正文

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

JSON 表示法
{
  "validateOnly": boolean,

  // Union field source can be only one of the following:
  "gcsSource": {
    object (GcsSource)
  },
  "sheetsSource": {
    object (SheetsSource)
  }
  // End of list of possible types for union field source.
}
字段
validateOnly

boolean

可选。如果设置,则不会进行上传,而是验证标签。如果未设置,则默认行为是在验证完成后上传标签。

联合字段 source。包含将转换为 FeedbackLabel 的对象的外部数据存储区的配置。source 只能是下列其中一项:
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.feedbackLabels.upload

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