Groups
Set Join Approval Mode
POST
/api/v1/group/joinapprovalmodeRequire admin approval to join (true) or not (false).
Parameters
- groupjidstringRequired
The group id, ending in @g.us.
- modebooleanRequired
true: an admin must approve new members. false: no approval.
| Name | Type | Required | Description |
|---|---|---|---|
| groupjid | string | Yes | The group id, ending in @g.us. |
| mode | boolean | Yes | true: an admin must approve new members. false: no approval. |
Code Examples
cURL
curl -X POST "https://orvachat.com/api/v1/group/joinapprovalmode" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"groupjid": "[email protected]",
"mode": true
}'Response Example
200 OK
{
"code": 200,
"data": {
"Details": "Group join approval mode updated successfully"
},
"success": true
}