Baileys Instance icon

Baileys Instance

Use the wa-instance API built on Baileys 7

Group → Update Participants

AI-generated

Summary

Modify group participants by adding, removing, promoting, or demoting them in a specified WhatsApp group.

Inputs

  • Group JID (required) — ID of the WhatsApp group in which to update participants.
  • Participants (required) — List of participants as JIDs to be added, removed, promoted, or demoted.
  • Action (required) — The operation to perform on the participants: add, remove, promote, or demote.

Output shape

a single record

Returns the response from the backend API after executing the participant update action, reflecting the update status or details.

Examples

Example 1: Add participants to a group

Specify the group JID, the participant JIDs to add, and set action to 'add'.

Example 2: Promote participants to admin

Specify the group JID, the participant JIDs to promote, and set action to 'promote'.

Links

Discussion