- HTTP request
- Path parameters
- Request body
- Response body
- Authorization Scopes
- IndexItemOptions
- Try it!
Updates Item
ACL, metadata, and content. It will insert the Item
if it does not exist. This method does not support partial updates. Fields with no provided values are cleared out in the Cloud Search index.
This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.
HTTP request
POST https://cloudsearch.googleapis.com/v1/indexing/{item.name=datasources/*/items/*}:index
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
item.name |
The name of the Item. Format: datasources/{sourceId}/items/{itemId} This is a required field. The maximum length is 1536 characters. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "item": { "name": string, "acl": { "inheritAclFrom": string, "aclInheritanceType": enum ( |
Fields | |
---|---|
item.acl |
Access control list for this item. |
item.metadata |
The metadata information. |
item.structuredData |
The structured data for the item that should conform to a registered object definition in the schema for the data source. |
item.content |
Item content to be indexed and made text searchable. |
item.version |
Required. The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the version of the queued Item using lexical ordering. Cloud Search Indexing won't index or delete any queued item with a version value that is less than or equal to the version of the currently indexed item. The maximum length for this field is 1024 bytes. For information on how item version affects the deletion process, refer to Handle revisions after manual deletes. A base64-encoded string. |
item.status |
Status of the item. Output only field. |
item.queue |
Queue this item belongs to. The maximum length is 100 characters. |
item.payload |
Additional state connector can store for this item. The maximum length is 10000 bytes. A base64-encoded string. |
item.itemType |
The type for this item. |
connectorName |
The name of connector making this call. Format: datasources/{sourceId}/connectors/{ID} |
mode |
Required. The RequestMode for this request. |
debugOptions |
Common debug options. |
indexItemOptions |
|
Response body
If successful, the response body contains an instance of Operation
.
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud_search.indexing
https://www.googleapis.com/auth/cloud_search
For more information, see the Authorization guide.
IndexItemOptions
JSON representation |
---|
{ "allowUnknownGsuitePrincipals": boolean } |
Fields | |
---|---|
allowUnknownGsuitePrincipals |
Specifies if the index request should allow Google Workspace principals that do not exist or are deleted. |