How to check and change admin-only mode in a WhatsApp group
You can use the Whapi Cloud API to check whether a group is set to admin-only mode (only admins can send messages) and to change that setting.
Checking the current setting
Changing the setting
{
"setting": "send_messages",
"policy": "admins"
}curl --request PATCH \
--url https://gate.whapi.cloud/groups/{GroupID} \
--header 'accept: application/json' \
--header 'authorization: Bearer YOUR_API_TOKEN' \
--header 'content-type: application/json' \
--data '{
"setting": "send_messages",
"policy": "admins"
}'Last updated