UploadRequest.IndexItemAndContentRequest

public static class UploadRequest.IndexItemAndContentRequest extends UploadRequest.IndexItemRequest

Request to index an Item and its content to the indexing API.

  • mediaContent is the content object that needs to be uploaded.

An example of IndexItemAndContentRequest is:

  {
    "mediaContent": {
        "contentType": "test/json",
        "contentString": "testContentString",
    },
    "item": {
         "name": "test567",
         "itemType": "CONTAINER_ITEM",
         "content": {
             "content_format": "TEXT"
          },
          "acl":  {
              "readers":
              [
                  {
                      "gsuitePrincipal":
                      {
                          "gsuiteDomain":true
                      }
                  }
              ]
          }
    },
    "indexItemOptions": {
        "allowUnknownGsuitePrincipals":true
    },
    "isIncremental": "true",
    "type": "items.indexItemAndContent"
  }
 

Inherited Field Summary

Public Constructor Summary

Inherited Method Summary

Public Constructors

public UploadRequest.IndexItemAndContentRequest ()