Actions76
- Message Actions
- Chat Actions
- Contact Actions
- Group Actions
- Create
- List
- Get
- Delete
- Join
- Get Join Info
- Leave
- Get Picture
- Set Picture
- Delete Picture
- Update Subject
- Update Description
- Get Security Info Admin Only
- Set Security Info Admin Only
- Get Security Messages Admin Only
- Set Security Messages Admin Only
- Get Participants
- Add Participant
- Remove Participant
- Promote Admin
- Demote Admin
- Status Actions
- Channel Actions
- Poll Actions
- Profile Actions
- LID Actions
- File Actions
Group → Set Security Messages Admin Only
AI-generatedOverview
This node operation allows you to configure the "Security Messages Admin Only" setting for a WhatsApp group via the Wappfy API. Specifically, it enables or disables the restriction that only group admins can send messages in the group. This is useful for managing group communication control, such as when you want to temporarily restrict messaging to admins only to reduce spam or maintain order.
Practical example:
If you manage a large WhatsApp group and want to prevent regular members from sending messages during announcements or important updates, you can use this operation to enable the "messages admin only" setting. Later, you can disable it to allow all members to participate again.
Properties
| Name | Meaning |
|---|---|
| Group ID | The unique identifier of the WhatsApp group where the setting will be applied. |
| Enabled | Boolean flag to enable (true) or disable (false) the "messages admin only" setting. |
Output
The output JSON contains the response from the Wappfy API after attempting to set the security messages admin-only setting for the specified group. It typically includes confirmation of the updated setting or error details if the request failed.
Example output structure (simplified):
{
"enabled": true,
"groupId": "123456789@g.us",
"message": "Security messages admin only setting updated successfully"
}
No binary data is involved in this operation.
Dependencies
Requires an active Wappfy API credential with:
- Base URL of the Wappfy API.
- Instance name identifying the WhatsApp session.
- An API key for authentication.
The node makes HTTP requests to the Wappfy API endpoints to perform the action.
Proper configuration of the Wappfy API credentials in n8n is necessary before using this node.
Troubleshooting
Common issues:
- Invalid or missing Group ID: Ensure the Group ID is correct and corresponds to an existing WhatsApp group.
- Insufficient permissions: The API key or session might not have admin rights on the group, causing failure to update settings.
- Network or API errors: Connectivity issues or incorrect API base URL can cause request failures.
Error messages:
"Group not found": Verify the Group ID is accurate."Unauthorized"or"Forbidden": Check API key validity and session permissions."Invalid request body": Confirm theenabledproperty is a boolean and properly set.
To resolve errors, verify credentials, input parameters, and network connectivity.
Links and References
- Wappfy API Documentation (general reference for API endpoints and usage)
- WhatsApp Group Management Best Practices (external resource)
Note: Replace links with actual URLs relevant to your environment or documentation.