Mutations
markThreadDiscussionRead
Clear the unread flag on a discussion. Use this when the user has viewed a discussion so that the isUnread indicator is reset. Returns the updated discussion.
MUTATION
markThreadDiscussionRead(input: MarkThreadDiscussionReadInput!): MarkThreadDiscussionReadOutput!Arguments
input
required
Returns
threadDiscussion
error
Mutation
mutation MarkThreadDiscussionRead($input: MarkThreadDiscussionReadInput!) {
markThreadDiscussionRead(input: $input) {
threadDiscussion {
id
threadId
thread {
id
ref
customer {
__typename
}
title
description
previewText
}
title
messages {
edges {
__typename
}
pageInfo {
__typename
}
}
status
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"threadDiscussionId": "id"
}
}Response
{
"data": {
"markThreadDiscussionRead": {
"threadDiscussion": {
"id": "id",
"threadId": "id",
"thread": {
"id": "id",
"ref": "string",
"customer": {
"__typename": "Customer"
},
"title": "string",
"description": "string",
"previewText": "string"
},
"title": "string",
"messages": {
"edges": [
{
"__typename": "ThreadDiscussionMessageEdge"
}
],
"pageInfo": {
"__typename": "PageInfo"
}
},
"status": "OPEN"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?
⌘I
Mutation
mutation MarkThreadDiscussionRead($input: MarkThreadDiscussionReadInput!) {
markThreadDiscussionRead(input: $input) {
threadDiscussion {
id
threadId
thread {
id
ref
customer {
__typename
}
title
description
previewText
}
title
messages {
edges {
__typename
}
pageInfo {
__typename
}
}
status
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"threadDiscussionId": "id"
}
}Response
{
"data": {
"markThreadDiscussionRead": {
"threadDiscussion": {
"id": "id",
"threadId": "id",
"thread": {
"id": "id",
"ref": "string",
"customer": {
"__typename": "Customer"
},
"title": "string",
"description": "string",
"previewText": "string"
},
"title": "string",
"messages": {
"edges": [
{
"__typename": "ThreadDiscussionMessageEdge"
}
],
"pageInfo": {
"__typename": "PageInfo"
}
},
"status": "OPEN"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}
