> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Index Document

Add a document to the index or update an existing document.

**Note**, this action belongs to `Glean Indexing API`, therefore requires using the `Indexing Token` connection method.

<Note>
  External Documentation

  To learn more, visit the [Glean documentation](https://developers.glean.com/api/indexing-api/index-document).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter                  | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Allow All Users            | Allow any Glean user to view the document.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
  | Allowed Users              | An array of objects that each represent a user that can view the document. For example:<br /><pre><code>\[<br />  \{<br />    "email": "string",<br />    "datasourceUserId": "string",<br />    "name": "string"<br />  },<br />  \{<br />    "email": "string2",<br />    "datasourceUserId": "string2",<br />    "name": "string2"<br />  },<br />]</code></pre><br />For more information on this struct, please refer to [Glean's documentation](https://developers.glean.com/api/indexing-api/index-document). |
  | Body Binary Content        | Base64 encoded binary content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
  | Body MIME Type             | The MIME type of the document body to be indexed for search.                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  | Body Text Content          | The body's text content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
  | Datasource                 | The datasource name to associate with the document during indexing.                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
  | Document ID                | The unique identifier for the document within the datasource. Maximum value of 200 characters is allowed.<br /><br />**Note**, The ID can only contain **alphanumeric** characters, and should be stable - the same document must keep the same ID across uploads. <br /><br />If an ID is not provided, the given ID would be a hash of the `View URL`.                                                                                                                                                             |
  | Document Summary MIME Type | The document's summary MIME type.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  | File Name                  | The source file name. Specify this attribute if there is no explicit title for the document and the content is sourced from a file.                                                                                                                                                                                                                                                                                                                                                                                  |
  | Object Type                | The type of the document. Can't contain spaces or underscores.                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
  | Permissions Allowed Groups | A comma separated list of groups that can view the document.                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  | Summary Binary Content     | Base64 encoded binary content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
  | Summary Text Content       | The summary's text content.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | View URL                   | The permalink for viewing the document. **Note**: `viewURL` is a `required` field for non-entity datasources.                                                                                                                                                                                                                                                                                                                                                                                                        |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter               | Description                                  |
  | ----------------------- | -------------------------------------------- |
  | Container               | The container name for the content.          |
  | Container Datasource ID | The datasource specific ID of the container. |
  | Created At              | The creation time of the document.           |
</div>

## Workflow Library Example

[Index Document with Glean and Send Results Via Email](https://library.blinkops.com/workflows/index-document-with-glean-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/index-document-with-glean-and-send-results-via-email/canvas" />
</div>
