Groups
Update Group Participants
POST
/api/v1/group/updateparticipantsAdd, 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).
| Name | Type | Required | Description |
|---|---|---|---|
| GroupJID | string | Yes | The group id, ending in @g.us. |
| Phone | array | Yes | Phone numbers of the people, with country code. |
| Action | string | Yes | 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
}