curl --request POST \
--url https://api.wppfy.com/newsletter/messages/edit \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"jid": "120363123456789012@newsletter",
"messageid": "3EB0B4302B3A8A52F7A1",
"text": "Post atualizado"
}
'
{
"response": {
"jid": "120363123456789012@newsletter",
"targetmessageid": "3EB0B4302B3A8A52F7A1",
"targetserverid": 12345,
"messageid": "3EB01234567890ABCDEF",
"serverid": 12346
}
}{
"error": "text or caption is required"
}{
"error": "client not found"
}{
"error": "newsletter message not found in recent history"
}{
"error": "connection closed"
}Newsletters and Channels
Edit recent channel message
Edits the content of a recent newsletter post directly on WhatsApp.
This route:
- does not depend on locally saved messages
- fetches the recent message directly from the WhatsApp channel
- locates the post by
messageidorserverid - edits only supported types (
text,image,video,document)
Notes:
- use
jidto identify the channel - send at least one of
messageidandserverid - send
textorcaptionwith the new content/caption - for media posts,
mediahandlecan provide the already known handle countandmaxpagescontrol the search window in the channel
POST
/
newsletter
/
messages
/
edit
curl --request POST \
--url https://api.wppfy.com/newsletter/messages/edit \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"jid": "120363123456789012@newsletter",
"messageid": "3EB0B4302B3A8A52F7A1",
"text": "Post atualizado"
}
'
{
"response": {
"jid": "120363123456789012@newsletter",
"targetmessageid": "3EB0B4302B3A8A52F7A1",
"targetserverid": 12345,
"messageid": "3EB01234567890ABCDEF",
"serverid": 12346
}
}{
"error": "text or caption is required"
}{
"error": "client not found"
}{
"error": "newsletter message not found in recent history"
}{
"error": "connection closed"
}Authorizations
Body
application/json
Channel JID. Accepts the full format 120363123456789012@newsletter or just the numeric identifier.
Example:
"120363123456789012@newsletter"
Logical ID of the message in the channel.
Example:
"3EB0B4302B3A8A52F7A1"
Sequential identifier of the post in the channel.
Required range:
x >= 1Example:
12345
New text or new caption of the post.
Example:
"Post updated"
Alias of text to update the caption of media posts.
Example:
"New caption"
Already known media handle, used when the edit needs to preserve the post's media.
Number of messages fetched per page when locating the post.
Required range:
x >= 1Example:
100
Maximum number of pages fetched when locating the post.
Required range:
x >= 1Example:
5
Response
Channel message edited successfully
Show child attributes
Show child attributes
