WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation sets the picture of a WhatsApp group using the WARest WhatsApp REST API. It allows users to specify a session, the target group by its ID, and the new group picture via a URL, local path, or data URI. This operation is useful for automating group management tasks such as updating group images in bulk or as part of a workflow.

Use Case Examples

  1. Automatically update the group picture for a marketing campaign group by providing a new image URL.
  2. Set a custom group picture for a newly created WhatsApp group as part of an onboarding process.

Properties

Name Meaning
Session Identifier of the WhatsApp session to use for the API call. It can be selected from a list of available sessions or entered manually.
Group ID The unique identifier (JID) of the WhatsApp group whose picture is to be set. It usually ends with '@g.us' or can be a raw ID.
Group Picture The new picture for the group. This can be provided as a URL, a local file path, or a data URI.

Output

JSON

  • json - The JSON response from the WARest API after setting the group picture, typically containing the operation result 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 group ID is correct and corresponds to an existing WhatsApp group.
  • The picture must be accessible if provided as a URL or correctly formatted if a local path or data URI is used.
  • Common errors include invalid session, invalid group ID, or unsupported picture format. Check API response messages for details.

Links

Discussion