sendMessage mutation
Adds a message to a message thread using its ID. If attachments were uploaded using the attachment service, they can also be added to the message thread as well.
Syntax
1mutation {2 sendMessage(5}
Example
- Request
- Response
1mutation {2 sendMessage(3 input: {4 attachmentIds: [5 "b3f7beb8-5641-11ee-8c99-0242ac120002",6 "b9ee73de-5641-11ee-8c99-0242ac120002"7 ],8 body: "Thank you for the booking.",9 clientMutationId: "c81529c6-5641-11ee-8c99-0242ac120002",10 messageThreadId: "cf109fe4-5641-11ee-8c99-0242ac120002"11 }12 )13 {14 messageId15 clientMutationId16 }17}
Arguments
Name | Description |
---|---|
| Required. Message thread ID and message details. Type: SendMessageInput |
Types
Name | Type | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
ID | ID | |||||||||||
The | ||||||||||||
SendMessageInput | InputObject | |||||||||||
Input parameter to add a message to a message thread.
| ||||||||||||
SendMessagePayload | Object | |||||||||||
String | String | |||||||||||
The |