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

Membuat CannedQuery.

Permintaan HTTP


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

URL ini menggunakan sintaksis gRPC Transcoding.

Parameter jalur

Parameter
parent

string

Wajib. Nama resource induk. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}

Parameter kueri

Parameter
cannedQueryId

string

Wajib. ID yang akan digunakan untuk kueri standar, yang akan menjadi komponen akhir dari nama resource kueri standar.

Kolom ini harus sesuai dengan RFC-1034 dengan batas panjang 63 karakter.

Isi permintaan

Isi permintaan memuat instance CannedQuery.

Isi respons

Jika berhasil, isi respons akan memuat instance CannedQuery yang baru dibuat.

Cakupan otorisasi

Memerlukan salah satu cakupan OAuth berikut:

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

Untuk mengetahui informasi selengkapnya, lihat Authentication Overview.

Izin IAM

Memerlukan izin IAM berikut pada resource parent:

  • discoveryengine.cannedQueries.create

Untuk mengetahui informasi selengkapnya, lihat dokumentasi IAM.