Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Group → Set Security Messages Admin Only

AI-generated

Overview

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 the enabled property 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.

Discussion