curl --request PUT \
--url https://api.wsapi.chat/groups/{id}/participants \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Instance-Id: <x-instance-id>' \
--data '
{
"participants": [
"1234567890@s.whatsapp.net"
],
"action": "add"
}
'{
"status": 400,
"detail": "invalid request body"
}{
"status": 401,
"detail": "unauthorized"
}{
"status": 403,
"detail": "device not paired"
}{
"status": 503,
"detail": "instance not available"
}Groups
Update group participants
Add, remove, promote, or demote participants. Requires admin privileges.
PUT
/
groups
/
{id}
/
participants
curl --request PUT \
--url https://api.wsapi.chat/groups/{id}/participants \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Instance-Id: <x-instance-id>' \
--data '
{
"participants": [
"1234567890@s.whatsapp.net"
],
"action": "add"
}
'{
"status": 400,
"detail": "invalid request body"
}{
"status": 401,
"detail": "unauthorized"
}{
"status": 403,
"detail": "device not paired"
}{
"status": 503,
"detail": "instance not available"
}Authorizations
Instance or customer-level API key. Either the instance's own API key or the customer's API key is accepted. Must be paired with the X-Instance-Id header to identify the target instance.
Headers
The ID of the WhatsApp instance to use
Path Parameters
Group JID
Body
application/json
Response
Participants updated
⌘I