update_group_participants
Add, remove, promote, or demote participants in a WhatsApp group. Requires admin rights. Actions are reversible by applying the inverse operation.
Instructions
Add, remove, promote, or demote participants of a group; the chat shows a system message naming each affected participant. Reversible by calling again with the inverse action (add ↔ remove, promote ↔ demote). Prerequisite: the paired user must be a group admin. Returns a JSON object describing the per-participant outcome.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | mutation to perform: `add`, `remove`, `promote` (to admin), or `demote` (from admin) | |
| chat_jid | Yes | WhatsApp JID: individual as `<digits>@s.whatsapp.net` or bare phone digits, group as `<digits>-<timestamp>@g.us` | |
| participants | Yes | participants to mutate, as bare phone digits or individual JIDs (WhatsApp JID: individual as `<digits>@s.whatsapp.net` or bare phone digits, group as `<digits>-<timestamp>@g.us`) |