curl --request POST \
  --url https://{domain}-be.glean.com/api/index/v1/debug/{datasource}/document \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json; charset=UTF-8' \
  --data '{
  "objectType": "Article",
  "docId": "art123"
}'
{
  "status": {
    "uploadStatus": "UPLOADED",
    "lastUploadedAt": "2021-08-06T17:58:01.000Z",
    "indexingStatus": "INDEXED",
    "lastIndexedAt": "2021-08-06T17:58:01.000Z",
    "permissionIdentityStatus": "UPLOADED"
  },
  "uploadedPermissions": {
    "allowedUsers": [
      {
        "email": "<string>",
        "datasourceUserId": "<string>",
        "name": "<string>"
      }
    ],
    "allowedGroups": [
      "<string>"
    ],
    "allowedGroupIntersections": [
      {
        "requiredGroups": [
          "<string>"
        ]
      }
    ],
    "allowAnonymousAccess": true,
    "allowAllDatasourceUsersAccess": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

datasource
string
required

The datasource to which the document belongs

Body

application/json; charset=UTF-8

Describes the request body of the /debug/{datasource}/document API call.

objectType
string
required

Object type of the document to get the status for.

Example:

"Article"

docId
string
required

Glean Document ID within the datasource to get the status for.

Example:

"art123"

Response

200
application/json; charset=UTF-8
OK

Describes the response body of the /debug/{datasource}/document API call

status
object

Upload and indexing status of the document

uploadedPermissions
object

describes the access control details of the document

Was this page helpful?