Method: projects.locations.corpora.collections.removeCollectionItem

Menghapus item dari koleksi.

Permintaan HTTP

POST https://visionai.googleapis.com/v1/{item.collection=projects/*/locations/*/corpora/*/collections/*}:removeCollectionItem

URL menggunakan sintaks gRPC Transcoding.

Parameter jalur

Parameter
item.collection

string

Wajib. Nama koleksi tempat item ini berada. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}

Isi permintaan

Isi permintaan memuat data dengan struktur berikut:

Representasi JSON
{
  "item": {
    "collection": string,
    "type": enum (Type),
    "itemResource": string
  }
}
Kolom
item.type

enum (Type)

Wajib. Jenis item.

item.itemResource

string

Wajib. Nama CollectionItem. Formatnya bergantung pada type di atas. Untuk ASSET: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}

Isi respons

Pesan permintaan untuk collections.removeCollectionItem.

Jika berhasil, isi respons memuat data dengan struktur berikut:

Representasi JSON
{
  "item": {
    object (CollectionItem)
  }
}
Kolom
item

object (CollectionItem)

Item yang telah dihapus.

Cakupan otorisasi

Memerlukan cakupan OAuth berikut:

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

Untuk mengetahui informasi selengkapnya, lihat Ringkasan Autentikasi.