WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation revokes an existing invite link for a WhatsApp group using the WARest WhatsApp REST API. It is useful for administrators who want to invalidate a previously shared invite link to prevent further joining of the group via that link, enhancing group security and control.

Use Case Examples

  1. An admin wants to revoke a group invite link after sharing it publicly to prevent unauthorized users from joining.
  2. A group owner needs to invalidate an old invite link before generating a new one for better access management.

Properties

Name Meaning
Session The WhatsApp session identifier used to authenticate and perform the operation.
Group ID The unique identifier (JID) of the WhatsApp group for which the invite link will be revoked.

Output

JSON

  • json - The JSON response from the WARest API indicating the result of the revoke invite link operation.

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 authentication.
  • Verify the group ID is correct and corresponds to a group the session has admin rights to manage.
  • Common error messages include 'Operation not implemented' if the operation name is incorrect, or API errors if the session or group ID is invalid.
  • If the invite link is already revoked or invalid, the API may return an error or empty result.

Links

Discussion