orvachat

Groups

Approve or Reject Join Requests

POST/api/v1/group/updaterequestparticipants

Approve or reject join requests.

Parameters

  • GroupJIDstringRequired

    The group id, ending in @g.us.

  • PhonearrayRequired

    The ids of the people who asked to join (from Get Join Requests).

  • ActionstringRequired

    approve or reject.

Code Examples

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

Response Example

200 OK
{
  "code": 200,
  "data": {
    "Details": "Group request participants updated successfully"
  },
  "success": true
}