Response
Return a 200 status to indicate that the event was properly received
{
"type": "message_updated",
"payload": {
"message": {
"id": 123,
"conversation_id": 123,
"date": "2023-01-31 16:22:17.327878+00:00",
"content_type": "Text",
"sender_type": "User",
"sender_label": "Jane Doe",
"status": "Sending",
"is_deleted": false,
"content": "<string>",
"user_id": "<string>",
"custom_channel": null
},
"conversation": {
"id": 123,
"consumer_img": "https://www.example.com/profile-picture.jpg",
"consumer_name": "John Doe",
"business": {
"id": 123
},
"messaging_partner": "Facebook",
"custom_channel": null
},
"org_id": 123
}
}This event is triggered if the field of a message is updated (example: status, is_deleted).
Messages send via Partoo are created with the status Sending, and
propagated to the messaging channel.
If the message is sent successfully, the status is changed to Success.
If the messaging channel fails to send the message, the status changed to
Failed. A failed message can be retried using the /retry endpoint.
The event payload contains the event type, the content of the updated message and additional information about the conversation.
{
"type": "message_updated",
"payload": {
"message": {
"id": 123,
"conversation_id": 123,
"date": "2023-01-31 16:22:17.327878+00:00",
"content_type": "Text",
"sender_type": "User",
"sender_label": "Jane Doe",
"status": "Sending",
"is_deleted": false,
"content": "<string>",
"user_id": "<string>",
"custom_channel": null
},
"conversation": {
"id": 123,
"consumer_img": "https://www.example.com/profile-picture.jpg",
"consumer_name": "John Doe",
"business": {
"id": 123
},
"messaging_partner": "Facebook",
"custom_channel": null
},
"org_id": 123
}
}Return a 200 status to indicate that the event was properly received
Was this page helpful?