Update conversation message

updateConversationMessage(conversationId: ID!, messageId: ID!, input: UpdateConversationMessageInput!): Message!

Arguments

ArgumentTypeRequiredDescription
conversationIdID!Yes
messageIdID!YesMessage to edit; it must belong to the conversation.
inputUpdateConversationMessageInput!Yes

Input fields

input

UpdateConversationMessageInput

FieldTypeRequiredDescription
partsJSON!YesReplacement message parts (1 to 200).

Response

Returns Message!. Open the type for its fields and nested types.

FieldTypeDescription
idID!
conversationIdID!
parentIdID
seqInt!
roleString!
createdByID
senderTypeString!Sender kind: user, webhook, service_account, integration, agent or system.
senderIdIDIdentifier of the sender: the participant or agent for an agent message, otherwise the author.

All fields of Message.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation UpdateConversationMessage($conversationId: ID!, $messageId: ID!, $input: UpdateConversationMessageInput!) {
  updateConversationMessage(conversationId: $conversationId, messageId: $messageId, input: $input) {
    id
    status
    createdAt
    updatedAt
    conversationId
  }
}
json
{
  "conversationId": "00000000-0000-4000-8000-000000000001",
  "messageId": "00000000-0000-4000-8000-000000000001",
  "input": {
    "parts": [
      {
        "type": "text",
        "text": "Hello"
      }
    ]
  }
}