Mutation
mutation ChangeThreadDiscussionStatus($input: ChangeThreadDiscussionStatusInput!) {
changeThreadDiscussionStatus(input: $input) {
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"threadDiscussionId": "id",
"status": "OPEN"
}
}Response
{
"data": {
"changeThreadDiscussionStatus": {
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
changeThreadDiscussionStatus
Move a discussion between OPEN and RESOLVED. Resolving records the resolution timestamp and settles agentStatus; reopening clears the timestamp and leaves agentStatus alone, because reopening does not mean an agent has picked the work up again. Doing nothing when the discussion is already in that status. Callable by a person, or by the agent a custom-agent discussion is bound to, so an agent can mirror its own thread status back into Plain.
MUTATION
changeThreadDiscussionStatus(input: ChangeThreadDiscussionStatusInput!): ChangeThreadDiscussionStatusOutput!Arguments
input
required
error
Mutation
mutation ChangeThreadDiscussionStatus($input: ChangeThreadDiscussionStatusInput!) {
changeThreadDiscussionStatus(input: $input) {
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"threadDiscussionId": "id",
"status": "OPEN"
}
}Response
{
"data": {
"changeThreadDiscussionStatus": {
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

