> For the complete documentation index, see [llms.txt](https://support.whapi.cloud/help-desk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.whapi.cloud/help-desk/groups/groups-other-questions/admin-only-mode-and-other-group-permissions-how-to-check-and-change-them.md).

# Admin-only mode and other group permissions: how to check and change them

You can use the Whapi.Cloud API to check whether a group is in admin-only mode (only admins can send messages, also called announcement mode) and to turn it on or off.

### Checking the current setting

Call `GET /groups/{GroupID}` and look for the `announcements` field in the response:

* `"announcements": true` — only admins can send messages.
* No `announcements` field — everyone can send messages.

API reference: [Get group](https://whapi.readme.io/reference/getgroup), [Get groups](https://whapi.readme.io/reference/getgroups)

### Changing the setting

Call `PATCH /groups/{GroupID}` with this body:

```json
{
  "setting": "send_messages",
  "policy": "admins"
}
```

Set `policy` to `admins` to restrict messaging to admins, or to `anyone` to let all participants write.

```bash
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"}'
```

{% hint style="warning" %}
Your channel must be an admin of the group to change this or any other group permission.
{% endhint %}

API reference: [Update group setting](https://whapi.readme.io/reference/updategroupsetting)

### Other group permissions

The group object has two more permission fields. Like `announcements`, each field is present only while the restriction is on. If it's missing, the action is open to everyone. To change them, use the same `PATCH` request with a different `setting`:

| Restriction                                                  | Field in the GET response | `setting` in PATCH |
| ------------------------------------------------------------ | ------------------------- | ------------------ |
| Only admins can send messages                                | `announcements`           | `send_messages`    |
| Only admins can add participants                             | `adminAddMemberMode`      | `add_participants` |
| Only admins can edit group info (subject, description, icon) | `restricted`              | `edit_group_info`  |

`policy` is `admins` or `anyone` for all three.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.whapi.cloud/help-desk/groups/groups-other-questions/admin-only-mode-and-other-group-permissions-how-to-check-and-change-them.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
