Actions116
- š¬ Chats Actions
- š¤ Contacts Actions
- š„ļø Sessions Actions
- š Profile Actions
- š¼ļø Screenshot Actions
- š¤ Chatting Actions
- š¢ Channels Actions
- š¢ Status Actions
- š„ Groups Actions
- Add Participants
- Demote To Admin
- Create Group
- Get Groups
- Join Info Group
- Join Group
- Refresh Groups
- Get Group
- Delete Group
- Leave Group
- Get Chat Picture
- Set Picture
- Delete Picture
- Set Description
- Set Subject
- Set Info Admin Only
- Get Info Admin Only
- Set Messages Admin Only
- Get Messages Admin Only
- Get Invite Code
- Revoke Invite Code
- Get Participants
- Remove Participants
- Promote To Admin
- ā Presence Actions
- š·ļø Labels Actions
- š Observability Actions
- š Auth Actions
Overview
This node operation demotes specified participants from admin status in a WhatsApp group. It is useful for managing group roles by removing admin privileges from certain members, helping maintain order and control within the group. For example, an admin can use this to revoke admin rights from users who no longer need them or to enforce group policies.
Use Case Examples
- Demote a user from admin in a group chat to restrict their administrative capabilities.
- Batch demote multiple participants from admin status in a large group to streamline role management.
Properties
| Name | Meaning |
|---|---|
| Session | The session name used to identify the WhatsApp session for the operation. |
| Id | The unique identifier of the WhatsApp group where participants will be demoted from admin. |
| Participants | A JSON array of participant objects specifying the users to be demoted from admin status in the group. |
| Request Options | Optional settings for the request such as batching, SSL certificate validation, proxy configuration, and timeout settings. |
Output
JSON
success- Indicates whether the demotion operation was successful.failedParticipants- List of participants for whom the demotion operation failed, if any.
Dependencies
- Requires a valid WhatsApp session identified by the session name.
Troubleshooting
- Ensure the session name is correct and active; otherwise, the operation will fail to connect to WhatsApp.
- Verify the group ID is valid and the bot or user has admin privileges to demote other admins.
- Check the participants JSON format is correct and includes valid participant IDs.
- If batching is enabled, ensure batch size and interval are set appropriately to avoid rate limiting or timeouts.
- If SSL issues occur, consider enabling the 'Ignore SSL Issues' option, but be aware of security risks.