Update Participants
wa_update_participantsAdd members to a WhatsApp group (action=add), make members admins (action=promote), or make admins ordinary members again (action=demote), by phone number or JID. Adding needs the account to be a member (and, for private groups, an admin); promote and demote need an admin. To remove members, use wa_remove_participants.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | add (new members), promote (members to admin) or demote (admins to members); to remove members use wa_remove_participants | |
| members | Yes | members — phone numbers (E.164) or JIDs, comma- or space-separated | |
| group_jid | Yes | the group (…@g.us) JID, as returned by wa_list_groups | |
| account_id | Yes | the account, as returned by wa_list_accounts |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | the rows of a list operation | |
| status | Yes | ok (the operation succeeded) or refused (see refusal; for wa_update_group, applied lists the changes that took effect before it) | |
| applied | No | wa_update_group only: the settings that were changed, in order — on a refusal, the ones that took effect before it | |
| refusal | No | present only when status is refused | |
| summary | No | a human-readable result | |
| group_jid | No | the new group's JID (wa_create_group only) — use it as wa_send_message's 'to' | |
| invite_link | No | the group's invite link (wa_create_group or wa_get_group_invite_link) |