Method: projects.locations.collections.engines.assistants.cannedQueries.create

建立 CannedQuery

HTTP 要求

POST https://discoveryengine.googleapis.com/v1alpha/{parent=projects/*/locations/*/collections/*/engines/*/assistants/*}/cannedQueries

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
parent

string

這是必要旗標,父項資源名稱。格式:projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}

查詢參數

參數
cannedQueryId

string

這是必要旗標,罐頭查詢的 ID,會成為罐頭查詢資源名稱的最終元件。

這個欄位必須符合 RFC-1034,長度上限為 63 個字元。

要求主體

要求主體包含 CannedQuery 的執行個體。

回應主體

如果成功,回應主體會包含新建立的 CannedQuery 執行個體。

授權範圍

需要下列其中一種 OAuth 範圍:

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

詳情請參閱Authentication Overview