Indexing API
- Documents
- Permissions
- Troubleshooting
- Datasources
- Authentication
- People
- Shortcuts
Client API
- Activity
- Announcements
- Answers
- Authentication
- Calendar
- Chat
- Agents
- Collections
- Displayable Lists
- Documents
- Images
- Insights
- Messages
- Pins
- Search
- Entities
- Shortcuts
- Summarize
- Tools
- User
- Verification
Actions API
- Authentication
- Setup
Update displayable lists
Update one or more displayable lists with all fields from request fields.
curl --request POST \
--url https://{domain}-be.glean.com/rest/api/v1/updatedisplayablelists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"items": [
{
"source": "SAVED_SEARCH",
"id": 123,
"sourceId": "<string>",
"config": {
"format": "LIST",
"title": "<string>",
"enabled": true,
"audienceFilters": [
{
"fieldName": "type",
"values": [
{
"value": "Spreadsheet",
"relationType": "EQUALS"
},
{
"value": "Presentation",
"relationType": "EQUALS"
}
]
}
],
"itemUIConfig": {
"showNewIndicator": true
}
}
}
]
}'
{
"items": [
{
"source": "SAVED_SEARCH",
"id": 123,
"sourceId": "<string>",
"config": {
"format": "LIST",
"title": "<string>",
"enabled": true,
"audienceFilters": [
{
"fieldName": "type",
"values": [
{
"value": "Spreadsheet",
"relationType": "EQUALS"
},
{
"value": "Presentation",
"relationType": "EQUALS"
}
]
}
],
"itemUIConfig": {
"showNewIndicator": true
}
}
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens).
Auth type being used to access the endpoint (should be non-empty only for global tokens).
Body
All configurations for a list that can be displayed.
Unique identifier of this list. Unique amongst only DisplayableLists, not unique amongst other types of UGC.
Unstructured identifier for the source to render (ID, URL, query).
UI specific configurations for a displayable list
defines how to render this particular displayable list card
LIST
Primary title for the list.
Whether the list should be shown to the user
Filters which restrict who should should see displayable list
"owner"
Within a single FacetFilter, the values are to be treated like an OR. For example, fieldName type with values [EQUALS Presentation, EQUALS Spreadsheet] means we want to show a document if it's a Presentation OR a Spreadsheet.
"Spreadsheet"
EQUALS
, ID_EQUALS
, LT
, GT
"EQUALS"
DEPRECATED - please use relationType instead
Indicates the value of a facet, if any, that the given facet is grouped under. This is only used for nested facets, for example, fieldName could be owner and groupName would be Spreadsheet if showing all owners for spreadsheets as a nested facet.
"Spreadsheet"
The type of data that backs this displayable list
SAVED_SEARCH
, COLLECTION
Response
All configurations for a list that can be displayed.
Unique identifier of this list. Unique amongst only DisplayableLists, not unique amongst other types of UGC.
Unstructured identifier for the source to render (ID, URL, query).
UI specific configurations for a displayable list
defines how to render this particular displayable list card
LIST
Primary title for the list.
Whether the list should be shown to the user
Filters which restrict who should should see displayable list
"owner"
Within a single FacetFilter, the values are to be treated like an OR. For example, fieldName type with values [EQUALS Presentation, EQUALS Spreadsheet] means we want to show a document if it's a Presentation OR a Spreadsheet.
"Spreadsheet"
EQUALS
, ID_EQUALS
, LT
, GT
"EQUALS"
DEPRECATED - please use relationType instead
Indicates the value of a facet, if any, that the given facet is grouped under. This is only used for nested facets, for example, fieldName could be owner and groupName would be Spreadsheet if showing all owners for spreadsheets as a nested facet.
"Spreadsheet"
The type of data that backs this displayable list
SAVED_SEARCH
, COLLECTION
curl --request POST \
--url https://{domain}-be.glean.com/rest/api/v1/updatedisplayablelists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"items": [
{
"source": "SAVED_SEARCH",
"id": 123,
"sourceId": "<string>",
"config": {
"format": "LIST",
"title": "<string>",
"enabled": true,
"audienceFilters": [
{
"fieldName": "type",
"values": [
{
"value": "Spreadsheet",
"relationType": "EQUALS"
},
{
"value": "Presentation",
"relationType": "EQUALS"
}
]
}
],
"itemUIConfig": {
"showNewIndicator": true
}
}
}
]
}'
{
"items": [
{
"source": "SAVED_SEARCH",
"id": 123,
"sourceId": "<string>",
"config": {
"format": "LIST",
"title": "<string>",
"enabled": true,
"audienceFilters": [
{
"fieldName": "type",
"values": [
{
"value": "Spreadsheet",
"relationType": "EQUALS"
},
{
"value": "Presentation",
"relationType": "EQUALS"
}
]
}
],
"itemUIConfig": {
"showNewIndicator": true
}
}
}
]
}