WaAPI icon

WaAPI

Interact with WaAPI API

Actions85

Overview

This node operation updates the settings of a specific group in a messaging platform. It allows controlling who can send messages within the group by toggling whether only admins or all members have messaging permissions. This is useful for managing group communication dynamics, such as restricting message sending during announcements or opening it up for general discussion.

Practical examples:

  • Restricting a group chat to admin-only messages during important announcements.
  • Allowing all group members to send messages after an event or meeting.

Properties

Name Meaning
Id The unique numeric identifier of the instance where the group exists (required).
Chat Id The string identifier of the group chat, typically formatted like <yyyyyyyy>@g.us.
Message Admin Only Boolean flag indicating if only admins can send messages (true) or all users can (false).

Output

The node outputs JSON data representing the result of the update operation on the group settings. This typically includes confirmation of the updated settings or any relevant response from the API indicating success or failure.

No binary data output is involved.

Dependencies

  • Requires an API key credential for authenticating with the external WaAPI service.
  • The node communicates with the WaAPI API endpoint at https://waapi.app/api/v1.
  • Proper configuration of this API key credential in n8n is necessary for successful execution.

Troubleshooting

  • Common issues:

    • Invalid or missing API key credential will cause authentication failures.
    • Incorrect Chat Id format may lead to errors identifying the target group.
    • Providing an invalid Id (instance ID) might result in resource not found errors.
  • Error messages and resolutions:

    • Authentication failed: Verify that the API key credential is correctly set up and has proper permissions.
    • Group not found: Check that the Chat Id and Id correspond to an existing group instance.
    • Invalid input: Ensure that the Message Admin Only property is a boolean and other inputs conform to expected types.

Links and References

Discussion