WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation locks or unlocks edits in a WhatsApp group, allowing only admins to make changes when locked. It is useful for group administrators who want to control who can modify group settings or content, ensuring that only authorized users (admins) can make edits. For example, a community manager can lock group edits to prevent members from changing group info or settings.

Use Case Examples

  1. Lock group edits to restrict editing permissions to admins only.
  2. Unlock group edits to allow all members to make changes.

Properties

Name Meaning
Session The WhatsApp session to use for the operation, selected from existing sessions or entered manually.
Group ID The unique identifier of the WhatsApp group to lock or unlock edits for.
Locked (Only admins can edit) Boolean flag to set the group as locked (true) or unlocked (false). When locked, only admins can edit the group.

Output

JSON

  • json - The response from the WARest API indicating the result of the lock/unlock operation on the group.

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 sessions will cause authentication errors.
  • Verify the group ID is correct and corresponds to an existing WhatsApp group.
  • Check that the API key credential is correctly configured and has permissions to modify group settings.
  • If the operation fails, the node will throw an error indicating the issue, such as missing parameters or API errors.

Links

Discussion