WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation allows editing an existing WhatsApp message using the WARest WhatsApp REST API. It is useful for scenarios where you need to update the content of a previously sent message, such as correcting a typo or updating information. For example, you can change the text of a message sent to a chat or recipient by specifying the session, recipient, message ID, and the new message content.

Use Case Examples

  1. Updating a message text in a customer support chat to correct information.
  2. Changing the content of a notification message sent to a group.

Properties

Name Meaning
Session The WhatsApp session identifier to use for the operation. You can select from existing sessions or enter a session ID manually.
Recipient / Chat (to) The phone number or JID of the recipient or chat where the message to be edited was sent. It can be a single or comma-separated list of recipients.
Message ID The unique identifier of the message to be edited within the chat.
New Message The new text content that will replace the existing message content.

Output

JSON

  • json - The response from the WARest API after editing the message, typically containing the updated message details or status.

Dependencies

  • Requires an API key credential for the WARest WhatsApp REST API and the base URL of the API server.

Troubleshooting

  • Ensure the session ID is valid and active; otherwise, the API call will fail.
  • Verify the recipient or chat ID is correct and the message ID exists in that chat.
  • The new message content must be provided and not empty; otherwise, the operation will not succeed.
  • Check API credentials and network connectivity if requests fail.

Links

Discussion