Connections

Manage group participants (add, remove, promote, demote)

post/connections/{phoneNumber}/group-participants

Path parameters

phoneNumberstring required
Example:+551234567890

Phone number for connection. Must have + prefix.

Request body

jidstring required

Group JID

participantstring required

User JID

action'add' | 'remove' | 'promote' | 'demote' required

Action to perform on participants. add adds participants, remove removes them, promote makes them admins, demote removes admin privileges.

Example request

{
  "jid": "123456789012345678@g.us",
  "participant": "551101234567@s.whatsapp.net",
  "action": "add"
}

Response

Participants updated successfully