Send Edit Message
PATCH/api/v2/instance/:instanceId/send/edit-message
Send Edit Message
This endpoint is designed to edit individual messages in a specific instance, making it easy to update messages in the WhatsApp application.
Request
Path Parameters
instanceId stringrequired
ID of the instance.
Query Parameters
message stringrequired
Enter the messageId or keiId of the message you want to react to.
- application/json
Body
required
The request body must be a JSON object containing the necessary parameters for editing the message.
editMessage
: Object that encapsulates the details of the message to be edited.text
: Updated message text.
editMessage object
text Edited text message.required
Responses
- 201
- 400
- 401
- 403
- 404
- 500
ResponseSendMessage
- application/json
- Schema
- Example (from schema)
Schema
messageId stringrequired
keyId stringrequired
keyFromMe booleanrequired
keyRemoteJid stringrequired
keyParticipant string
pushName stringrequired
contentType stringrequired
isGroup booleanrequired
content objectrequired
source stringrequired
messageTimestamp numberrequired
createdAt date-timerequired
Default value: 2023-12-13T17:55:01.032Z
instanceInstanceId stringrequired
Default value: 2023-12-13T17:55:01.032Z
externalAttributes stringrequired
{
"messageId": "string",
"keyId": "string",
"keyFromMe": true,
"keyRemoteJid": "string",
"keyParticipant": "string",
"pushName": "string",
"contentType": "string",
"isGroup": true,
"content": {},
"source": "string",
"messageTimestamp": 0,
"createdAt": "2024-04-14T14:11:05.693Z",
"instanceInstanceId": "2023-12-13T17:55:01.032Z",
"externalAttributes": "string"
}
BadRequestException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
UnauthorizedException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
ForbiddenException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
NotFoundException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
InternalServerErrorException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
Loading...