orvachat

Groups

Update Group Participants

POST/api/v1/group/updateparticipants

Add, remove, promote or demote participants.

Parameters

  • GroupJIDstringRequired

    The group id, ending in @g.us.

  • PhonearrayRequired

    Phone numbers of the people, with country code.

  • ActionstringRequired

    add, remove, promote (make admin) or demote (remove admin).

Code Examples

cURL
curl -X POST "https://orvachat.com/api/v1/group/updateparticipants" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "GroupJID": "[email protected]",
  "Phone": [
    "923001234567"
  ],
  "Action": "add"
}'

Response Example

200 OK
{
  "code": 200,
  "data": {
    "Details": "Participants updated successfully"
  },
  "success": true
}