Mutation
mutation SendDiscussionMessage($input: SendDiscussionMessageInput!) {
sendDiscussionMessage(input: $input) {
discussionMessage {
id
threadDiscussionId
type
text
slackMessageLink
attachments {
id
fileName
fileSize {
__typename
}
fileExtension
fileMimeType
type
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"discussionId": "id",
"markdownContent": "string"
}
}Response
{
"data": {
"sendDiscussionMessage": {
"discussionMessage": {
"id": "id",
"threadDiscussionId": "id",
"type": "INBOUND",
"text": "string",
"slackMessageLink": "string",
"attachments": [
{
"id": "id",
"fileName": "string",
"fileSize": {
"__typename": "FileSize"
},
"fileExtension": "string",
"fileMimeType": "string",
"type": "EMAIL"
}
]
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
sendDiscussionMessage
Send a message in an existing discussion. Supersedes sendThreadDiscussionMessage and additionally supports Sidekick AGENT_SESSION discussions. For Slack and email discussions, use attachmentIds for customer-scoped file attachments. For AGENT_SESSION discussions, use workspaceFileIds instead. The message is delivered to the underlying channel (Slack thread reply, email reply, or agent session).
MUTATION
sendDiscussionMessage(input: SendDiscussionMessageInput!): SendDiscussionMessageOutput!Arguments
input
required
Returns
discussionMessage
error
Mutation
mutation SendDiscussionMessage($input: SendDiscussionMessageInput!) {
sendDiscussionMessage(input: $input) {
discussionMessage {
id
threadDiscussionId
type
text
slackMessageLink
attachments {
id
fileName
fileSize {
__typename
}
fileExtension
fileMimeType
type
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"discussionId": "id",
"markdownContent": "string"
}
}Response
{
"data": {
"sendDiscussionMessage": {
"discussionMessage": {
"id": "id",
"threadDiscussionId": "id",
"type": "INBOUND",
"text": "string",
"slackMessageLink": "string",
"attachments": [
{
"id": "id",
"fileName": "string",
"fileSize": {
"__typename": "FileSize"
},
"fileExtension": "string",
"fileMimeType": "string",
"type": "EMAIL"
}
]
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

