WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation promotes participants in a WhatsApp group using the WARest WhatsApp REST API. It is useful for managing group roles by elevating selected participants to admin status within a specified group session. For example, a user can promote multiple group members to admins to delegate group management tasks.

Use Case Examples

  1. Promote specific participants in a WhatsApp group to admin status by providing the session ID, group ID, and a list of participant JIDs or phone numbers.
  2. Automate group role management by integrating this node in workflows that adjust participant permissions based on external triggers or events.

Properties

Name Meaning
Session The session ID representing the WhatsApp session to use for the operation.
Group ID The unique identifier (JID) of the WhatsApp group where participants will be promoted.
Participants A collection of participants to promote, each specified by their JID or phone number.

Output

JSON

  • json - The response from the WARest API after promoting participants, typically including status or updated group participant information.

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; invalid or expired sessions will cause errors.
  • Verify the group ID is correct and the user has admin privileges in the group to promote participants.
  • Participants must be valid JIDs or phone numbers; invalid entries will cause the API call to fail.
  • Common error messages include 'Operation not implemented' if the operation name is incorrect, or API errors related to permissions or invalid parameters. Check the API response for detailed error information.

Discussion