UploadRequest.IndexItemRequest

Stay organized with collections Save and categorize content based on your preferences.
public static class UploadRequest.IndexItemRequest extends UploadRequest.AbstractRequest
Known Direct Subclasses

Request to index an Item to the indexing API.

  • item is the Item object that needs to be updated in the indexing API.
  • isIncremental is true if this is to be an incremental update instead of the default backfill.

An example of IndexItemRequest is:

  {
    "item": {
         "name": "test123",
         "itemType": "CONTAINER_ITEM",
         "content": {
             "content_format": "TEXT"
          },
          "acl":  {
              "readers":
              [
                  {
                      "gsuitePrincipal":
                      {
                          "gsuiteDomain":true
                      }
                  }
              ]
          }
    },
    "indexItemOptions": {
        "allowUnknownGsuitePrincipals":true
    },
    "type": "items.indexItem",
    "isIncremental": "true"
  }
 

Inherited Field Summary

Public Constructor Summary

Inherited Method Summary

Public Constructors

public UploadRequest.IndexItemRequest ()