v1
latestOpenAPI 3.0.32026-07-17410723.6 KBConnections
Edits a previously sent message. Only text messages (including captions) can be edited. The message must have been sent by you and must be within the editable time window (approximately 15 minutes).
patch/connections/{phoneNumber}/messages
Path parameters
phoneNumberstring required
Example:+551234567890
Phone number for connection. Must have + prefix.
Request body
Example request
{
"messageContent": {
"text": "Updated message text",
"mentions": [
"551101234567@s.whatsapp.net"
]
}
}Response
Disconnected
Example response
{
"data": {
"jid": "551234567890@s.whatsapp.net",
"profilePictureUrl": "https://pps.whatsapp.net/v/t61.24694-24/...",
"enforcementType": "DEFAULT",
"total_quota": 100,
"capping_status": "NONE"
},
"wid": "551234567890@s.whatsapp.net",
"description": "We are a company that sells products",
"email": "contact@business.com",
"website": [
"https://business.com"
],
"category": "Retail",
"address": "123 Main St, City",
"business_hours": {
"timezone": "America/Sao_Paulo"
},
"id": "120363425378794738@g.us",
"addressingMode": "lid",
"subject": "My Group",
"subjectOwner": "12345678901234@lid",
"subjectOwnerPn": "551234567890@s.whatsapp.net",
"owner": "12345678901234@lid",
"ownerPn": "551234567890@s.whatsapp.net",
"owner_country_code": "BR",
"memberAddMode": true,
"participants": [
{
"id": "12345678901234@lid",
"phoneNumber": "551234567890@s.whatsapp.net",
"admin": "superadmin"
}
],
"ephemeralDuration": 604800
}