Mutations
createSavedThreadsView
Creates a new saved threads view in the workspace. The view stores a named filter configuration (including sort order, grouping, layout, and display options) that can be applied when querying threads. Requires the savedThreadsView:create permission; depending on workspace settings, only admins or all members may be allowed to create views.
MUTATION
createSavedThreadsView(input: CreateSavedThreadsViewInput!): CreateSavedThreadsViewOutput!Arguments
input
required
Returns
savedThreadsView
error
Mutation
mutation CreateSavedThreadsView($input: CreateSavedThreadsViewInput!) {
createSavedThreadsView(input: $input) {
savedThreadsView {
id
name
icon
color
threadsFilter {
statuses
statusDetails
priorities
assignedToUser
participants
customerGroups
}
isHidden
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"name": "string",
"icon": "string",
"color": "string",
"threadsFilter": {
"statuses": [
"TODO"
],
"statusDetails": [
"CREATED"
],
"priorities": [
1
],
"assignedToUser": [
"id"
],
"participants": [
"id"
],
"customerGroups": [
"id"
],
"companies": [
"id"
],
"tenants": [
"id"
],
"tiers": [
"id"
],
"labelTypeIds": [
"id"
],
"messageSource": [
"CHAT"
],
"supportEmailAddresses": [
"string"
],
"slaTypes": [
"string"
],
"slaStatuses": [
"string"
],
"threadFields": [
{
"key": "string"
}
],
"tenantFields": [
{
"externalFieldId": "string"
}
],
"threadLinkGroupIds": [
"id"
],
"threadLinkSources": [
{
"sourceType": "string",
"sourceId": "id"
}
],
"sort": {
"field": "STATUS_CHANGED_AT",
"direction": "ASC"
},
"displayOptions": {
"hasStatus": true,
"hasCustomer": true,
"hasCompany": true,
"hasPreviewText": true,
"hasTier": true,
"hasCustomerGroups": true,
"hasLabels": true,
"hasLinkedThreads": true,
"hasServiceLevelAgreements": true,
"hasChannels": true,
"hasLastUpdated": true,
"hasAssignees": true,
"hasRef": true
},
"groupBy": "NONE",
"layout": "TABLE"
}
}
}Response
{
"data": {
"createSavedThreadsView": {
"savedThreadsView": {
"id": "id",
"name": "string",
"icon": "string",
"color": "string",
"threadsFilter": {
"statuses": [
"TODO"
],
"statusDetails": [
"CREATED"
],
"priorities": [
1
],
"assignedToUser": [
"id"
],
"participants": [
"id"
],
"customerGroups": [
"id"
]
},
"isHidden": true
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?
⌘I
Mutation
mutation CreateSavedThreadsView($input: CreateSavedThreadsViewInput!) {
createSavedThreadsView(input: $input) {
savedThreadsView {
id
name
icon
color
threadsFilter {
statuses
statusDetails
priorities
assignedToUser
participants
customerGroups
}
isHidden
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"name": "string",
"icon": "string",
"color": "string",
"threadsFilter": {
"statuses": [
"TODO"
],
"statusDetails": [
"CREATED"
],
"priorities": [
1
],
"assignedToUser": [
"id"
],
"participants": [
"id"
],
"customerGroups": [
"id"
],
"companies": [
"id"
],
"tenants": [
"id"
],
"tiers": [
"id"
],
"labelTypeIds": [
"id"
],
"messageSource": [
"CHAT"
],
"supportEmailAddresses": [
"string"
],
"slaTypes": [
"string"
],
"slaStatuses": [
"string"
],
"threadFields": [
{
"key": "string"
}
],
"tenantFields": [
{
"externalFieldId": "string"
}
],
"threadLinkGroupIds": [
"id"
],
"threadLinkSources": [
{
"sourceType": "string",
"sourceId": "id"
}
],
"sort": {
"field": "STATUS_CHANGED_AT",
"direction": "ASC"
},
"displayOptions": {
"hasStatus": true,
"hasCustomer": true,
"hasCompany": true,
"hasPreviewText": true,
"hasTier": true,
"hasCustomerGroups": true,
"hasLabels": true,
"hasLinkedThreads": true,
"hasServiceLevelAgreements": true,
"hasChannels": true,
"hasLastUpdated": true,
"hasAssignees": true,
"hasRef": true
},
"groupBy": "NONE",
"layout": "TABLE"
}
}
}Response
{
"data": {
"createSavedThreadsView": {
"savedThreadsView": {
"id": "id",
"name": "string",
"icon": "string",
"color": "string",
"threadsFilter": {
"statuses": [
"TODO"
],
"statusDetails": [
"CREATED"
],
"priorities": [
1
],
"assignedToUser": [
"id"
],
"participants": [
"id"
],
"customerGroups": [
"id"
]
},
"isHidden": true
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}
