Update document permissions Beta

Updates the permissions for a given document without modifying document content. This endpoint is not yet generally available. Please contact Glean support to enable this feature.

SecurityBearerAuth
Request
Request Body schema: application/json
required
datasource
required
string
objectType
string

The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _

id
string

The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length.

viewURL
string

The permalink for viewing the document. Note: viewURL is a required field if id was not set when uploading the document.'

required
object (DocumentPermissionsDefinition)

describes the access control details of the document

Responses
200

OK

400

Bad Request

401

Not Authorized

409

Conflict

429

Too Many Requests

post/updatepermissions
Request samples
application/json
{
  • "datasource": "string",
  • "objectType": "string",
  • "id": "string",
  • "viewURL": "string",
  • "permissions": {
    • "allowedUsers": [
      • {
        • "email": "string",
        • "datasourceUserId": "string",
        • "name": "string"
        }
      ],
    • "allowedGroups": [
      • "string"
      ],
    • "allowedGroupIntersections": [
      • {
        • "requiredGroups": [
          • "string"
          ]
        }
      ],
    • "allowAnonymousAccess": true,
    • "allowAllDatasourceUsersAccess": true
    }
}