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

CannedQuery を作成します。

HTTP リクエスト

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

この URL では gRPC Transcoding 構文を使用します。

パスパラメータ

パラメータ
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 をご覧ください。