Method: projects.locations.userStores.create

创建新用户存储区。

HTTP 请求

POST https://discoveryengine.googleapis.com/v1beta/{parent=projects/*/locations/*}/userStores

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。父级集合的资源名称,例如 projects/{project}/locations/{location}

查询参数

参数
userStoreId

string

必需。要创建的用户存储区的 ID。

该 ID 只能包含字母(a-z、A-Z)、数字 (0-9)、下划线 (_) 和连字符 (-),且长度上限为 63 个字符。

请求正文

请求正文包含一个 UserStore 实例。

响应正文

如果成功,响应正文将包含一个新创建的 UserStore 实例。

授权范围

需要以下 OAuth 范围之一:

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

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