Configure group messaging and editing permissions.
curl --request POST \
--url https://api.example.com/group/updateSetting/my-instance \
--header 'apikey: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"groupJid": "120363123456789@g.us",
"action": "announcement"
}'
{
"success": true,
"groupJid": "120363123456789@g.us",
"action": "announcement",
"announce": true,
"restrict": true
}
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/EvolutionAPI/evolution-api/llms.txt
Use this file to discover all available pages before exploring further.
apikey header.
@g.us suffix).announcement: Only admins can send messages (enable announcement mode)not_announcement: All members can send messages (disable announcement mode)locked: Only admins can edit group info (subject, description, picture)unlocked: All members can edit group infocurl --request POST \
--url https://api.example.com/group/updateSetting/my-instance \
--header 'apikey: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"groupJid": "120363123456789@g.us",
"action": "announcement"
}'
{
"success": true,
"groupJid": "120363123456789@g.us",
"action": "announcement",
"announce": true,
"restrict": true
}
announcement mode with locked settings creates a fully admin-controlled group where only admins can post and edit.POST /group/toggleEphemeral/:instanceName
{
"groupJid": "120363123456789@g.us",
"expiration": 86400
}
0: Disabled (messages don’t disappear)86400: 24 hours (1 day)604800: 7 days7776000: 90 dayscurl --request POST \
--url https://api.example.com/group/updateSetting/my-instance \
--header 'apikey: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"groupJid": "120363123456789@g.us",
"action": "announcement"
}'
{
"success": true,
"groupJid": "120363123456789@g.us",
"action": "announcement",
"announce": true,
"restrict": true
}