Actions101
- š¤ Chatting Actions
- š„ļø Sessions Actions
- š Auth Actions
- š¼ļø Screenshot Actions
- š¢ Channels Actions
- š¢ Status Actions
- š¬ Chats Actions
- š¤ Contacts Actions
- š„ Groups Actions
- ā Presence Actions
- š·ļø Labels Actions
- š Observability Actions
Overview
This node operation demotes specified participants from admin status within a WhatsApp group. It is useful for managing group roles by removing admin privileges from certain members, helping maintain group order and control. For example, a group owner can demote a participant who no longer needs admin rights.
Use Case Examples
- Demote a participant from admin in a group chat by providing the group ID and participant IDs.
- Automate role management in WhatsApp groups by demoting multiple admins at once.
Properties
| Name | Meaning |
|---|---|
| Session | The session name used to authenticate and identify the WhatsApp session. |
| Id | The unique identifier of the WhatsApp group where participants will be demoted from admin. |
| Participants | A JSON array of participant objects specifying the IDs of users to be demoted from admin in the group. |
| Request Options | Optional settings for the request such as batching, SSL certificate handling, proxy configuration, and timeout settings. |
Output
JSON
success- Indicates whether the demotion operation was successful.groupId- The ID of the group where participants were demoted.demotedParticipants- List of participant IDs who were demoted from admin.
Dependencies
- Requires a valid WhatsApp session authentication to perform group admin demotion.
Troubleshooting
- Ensure the session name is correct and active; otherwise, authentication will fail.
- Verify the group ID is valid and the user has permission to demote admins in that group.
- Participants must be valid group members and currently admins; otherwise, demotion will not apply.
- Check network settings if using proxy or if SSL issues occur, especially if 'Ignore SSL Issues' is disabled.