Actions75
- Channel Actions
- Chat Actions
- Client Actions
- Contact Actions
- Group Chat Actions
- Message Actions
- Session Actions
Group Chat → Demote Participants
AI-generatedSummary
Demote listed participants to regular members of a WhatsApp group chat.
Inputs
- sessionId (required) — Session identifier to use; selected from available sessions or provided via credentials.
- chatId (required) — Unique WhatsApp group identifier (e.g., 120363XXXXXXXXX@g.us).
- participantIds (required) — Comma‑separated list of participant IDs to demote.
Output shape
object containing a success flag (e.g., "success": true) and possibly updated group information
The operation throws if the session is missing or IDs are invalid; otherwise it returns the API response for demoteParticipants.
Examples
Example 1: Demote two users in a group
sessionId = "rocstatus", chatId = "120363XXXXXXXXX@g.us", participantIds = "34612345678@c.us, 34698765432@c.us"
Example 2: Demote a single admin
sessionId = "mySession", chatId = "120363123456789012345678@g.us", participantIds = "34698765432@c.us"