PUT
/api/groups/{groupJid}/settings
Updates settings for a specific group (e.g., subject, description, announce mode, restrict mode). Requires admin privileges.
Update Group Settings
Updates settings for a specific group (e.g., subject, description, announce mode, restrict mode). Requires admin privileges.
Parameters
Name | Type | Required | Description |
---|---|---|---|
groupJid | string | Yes | The JID (Jabber ID) of the group in the format 123456789-987654321@g.us. |
subject | string | No | New group subject. |
description | string | No | New group description. |
announce | boolean | No | Set to true for admin-only messages, false otherwise. |
restrict | boolean | No | Set to true to restrict editing group info to admins, false otherwise. |
Code Examples
curl -X PUT "https://www.wasenderapi.com/api/groups/{groupJid}/settings"
-H "Authorization: Bearer YOUR_API_KEY"
-H "Content-Type: application/json"
-d '{
"subject": "Sample Subject",
"description": "Sample Description",
"announce": true,
"restrict": true
}'
Response Examples
{
"success": true,
"data": {
"subject": "New Group Subject",
"description": "New Group Description"
}
}