Mutation
mutation CreateThreadEvent($input: CreateThreadEventInput!) {
createThreadEvent(input: $input) {
threadEvent {
id
customerId
threadId
title
components {
__typename
... on ComponentText {
__typename
}
}
isCollapsed
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"threadId": "id",
"title": "string",
"components": [
{}
]
}
}Response
{
"data": {
"createThreadEvent": {
"threadEvent": {
"id": "id",
"customerId": "id",
"threadId": "id",
"title": "string",
"components": [
{
"__typename": "ComponentText"
}
],
"isCollapsed": true
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
createThreadEvent
Creates a thread event that appears only in the timeline of the specified thread.
Use this when an activity is specific to a single conversation rather than the customer
as a whole. The event layout is defined using Plain UI components. Thread events are visible
only to your team and are never shown to the customer. Requires the threadEvent:create and
threadEvent:read permissions.
MUTATION
createThreadEvent(input: CreateThreadEventInput!): CreateThreadEventOutput!Arguments
input
required
Returns
threadEvent
error
Mutation
mutation CreateThreadEvent($input: CreateThreadEventInput!) {
createThreadEvent(input: $input) {
threadEvent {
id
customerId
threadId
title
components {
__typename
... on ComponentText {
__typename
}
}
isCollapsed
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"threadId": "id",
"title": "string",
"components": [
{}
]
}
}Response
{
"data": {
"createThreadEvent": {
"threadEvent": {
"id": "id",
"customerId": "id",
"threadId": "id",
"title": "string",
"components": [
{
"__typename": "ComponentText"
}
],
"isCollapsed": true
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

