Method: projects.locations.corpora.collections.removeCollectionItem

從珍藏內容中移除項目。

HTTP 要求

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

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

路徑參數

參數
item.collection

string

這是必要旗標,此項目所屬的集合名稱。格式:projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}

要求主體

要求主體包含下列結構的資料:

JSON 表示法
{
  "item": {
    "collection": string,
    "type": enum (Type),
    "itemResource": string
  }
}
欄位
item.type

enum (Type)

這是必要旗標,項目類型。

item.itemResource

string

這是必要旗標,CollectionItem 的名稱。格式取決於上述的 type。資產:projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}

回應主體

要求訊息,適用於 collections.removeCollectionItem。

如果成功,回應主體會含有以下結構的資料:

JSON 表示法
{
  "item": {
    object (CollectionItem)
  }
}
欄位
item

object (CollectionItem)

已移除的項目。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱驗證總覽一文。