v1
latestOpenAPI 3.1.02026-07-24111290748.0 KBTicket Messages
Update a message
put/api/tickets/{ticket_id}/messages/{id}
Path parameters
ticket_idinteger required
The ID of the ticket associated with the message.
idinteger required
The ID of the message to update.
Query parameters
action'force' | 'retry' | 'cancel'
Example:force
Policy applied on external actions associated with the message if they failed. Three actions are possible:
- force: bypass the failed action and try to execute the remaining one and to send the message
- retry: retry the failed action
- cancel: delete the TicketMessage
Request body
Example request
{
"attachments": [],
"body_html": "Hello,<br><br>\n\n I can't place an order on your site, it says: I don't have enough credit.<br>\n How can I add some credits?<br><br>\n\n Cheers,<br>\n John Doe\n ",
"body_text": "Hello,\n\n I can't place an order on your site, it says: I don't have enough credit.\n How can I add some credits?\n\n Cheers,\n John Doe\n ",
"channel": "email",
"external_id": "MSG-78545",
"from_agent": true,
"message_id": "<123345676453.2445.234@web>",
"receiver": {
"id": 8
},
"sender": {
"id": 93
},
"source": {
"type": "email",
"from": {
"id": 7,
"name": "Sender Doe",
"address": "sender@gorgias.io"
},
"to": [
{
"id": 8,
"name": "Receiver Doe",
"address": "receiver@gorgias.io"
}
]
},
"subject": "Re:Refund request",
"via": "api"
}Response
The updated message.
Example response
{
"id": 924712,
"message_id": "<123345676453.2445.234@web>",
"ticket_id": 12,
"external_id": "MSG-78545",
"public": true,
"integration_id": 28643,
"intents": [
{
"name": "discount/request"
}
],
"rule_id": 89465,
"from_agent": true,
"subject": "Re:Refund request",
"body_text": "Hello,\n\n I can't place an order on your site, it says: I don't have enough credit.\n How can I add some credits?\n\n Cheers,\n John Doe\n ",
"body_html": "Hello,<br><br>\n\n I can't place an order on your site, it says: I don't have enough credit.<br>\n How can I add some credits?<br><br>\n\n Cheers,<br>\n John Doe\n ",
"attachments": [],
"macros": [],
"actions": [],
"headers": {
"My-Header": "foo"
},
"meta": {},
"created_datetime": "2020-01-27T10:42:21.468912",
"processed_datetime": "2020-01-27T10:42:21.468912",
"deleted_datetime": "2020-01-27T10:42:21.468912",
"opened_datetime": "2019-07-05T15:22:46.472436",
"replied_by": {
"integration_id": 28643,
"created_datetime": "2020-01-27T10:42:21.468912",
"body_text": "Hello,\n\n I can't place an order on your site, it says: I don't have enough credit.\n How can I add some credits?\n\n Cheers,\n John Doe\n "
},
"replied_to": {
"integration_id": 28643,
"created_datetime": "2020-01-27T10:42:21.468912",
"body_text": "Hello,\n\n I can't place an order on your site, it says: I don't have enough credit.\n How can I add some credits?\n\n Cheers,\n John Doe\n "
}
}