Adds an item into a Collection.
HTTP request
POST https://visionai.googleapis.com/v1alpha1/{item.collection=projects/*/locations/*/corpora/*/collections/*}:addCollectionItem
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
item.collection |
Required. The collection name that this item belongs to. Format: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"item": {
"collection": string,
"type": enum ( |
Fields | |
---|---|
item.type |
Required. The type of item. |
item.itemResource |
Required. The name of the CollectionItem. Its format depends on the |
Response body
Response message for collections.addCollectionItem.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"item": {
object ( |
Fields | |
---|---|
item |
The item that has already been added. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.