Actions85
- Instances Actions
- Client Actions
- Message Actions
- Chat Actions
- Contact Actions
- Number Actions
- Group Actions
- Channel Actions
- Label Actions
- Story Actions
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 Idformat 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 IdandIdcorrespond to an existing group instance. - Invalid input: Ensure that the
Message Admin Onlyproperty is a boolean and other inputs conform to expected types.
Links and References
- WaAPI Official Documentation (for detailed API usage and parameters)
- n8n Credential Setup Guide (for configuring API keys)