---
title: "Restrict group editing to admins only"
method: PUT
path: "/api/groups/setEditAdminsOnly"
tags: ["groups"]
---

# Restrict group editing to admins only

`PUT /api/groups/setEditAdminsOnly`

Restrict group editing to admins only

## Request body

- object
  - `groupId` string, required — Group chat ID
  - `onlyAdmins` boolean, required — Admins only setting

## Response `200`

Successful response

- boolean

## Other responses

- `400` — Validation error
- `500` — Internal server error

---

[API](https://skmtc.net/open-wa/apis/open-wa-api.md) · [All operations](https://skmtc.net/open-wa/apis/open-wa-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/open-wa/open-wa-api/versions/2f344d03d2a9/schema)
