Mutation
mutation CreateTestThread {
createTestThread {
thread {
id
ref
customer {
id
externalId
fullName
shortName
email {
__typename
}
avatarUrl
}
title
description
previewText
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Response
{
"data": {
"createTestThread": {
"thread": {
"id": "id",
"ref": "string",
"customer": {
"id": "id",
"externalId": "id",
"fullName": "string",
"shortName": "string",
"email": {
"__typename": "EmailAddress"
},
"avatarUrl": "string"
},
"title": "string",
"description": "string",
"previewText": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
createTestThread
Create a test thread for the signed-in user. Test threads come from a synthetic customer rather
than a real one. The scenario is picked for you and fixes the thread’s title; its opening
message is written shortly after this returns. They are listed by testThreads rather than
threads, and only for the user who created them. Requires the thread:create permission.
MUTATION
createTestThread: CreateTestThreadOutput!Returns
thread
error
Mutation
mutation CreateTestThread {
createTestThread {
thread {
id
ref
customer {
id
externalId
fullName
shortName
email {
__typename
}
avatarUrl
}
title
description
previewText
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Response
{
"data": {
"createTestThread": {
"thread": {
"id": "id",
"ref": "string",
"customer": {
"id": "id",
"externalId": "id",
"fullName": "string",
"shortName": "string",
"email": {
"__typename": "EmailAddress"
},
"avatarUrl": "string"
},
"title": "string",
"description": "string",
"previewText": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

