---
title: "Toggle who can add members (admins only or all)"
method: POST
path: "/v1/group/setMemberAddMode/{instance}"
tags: ["Group"]
---

# Toggle who can add members (admins only or all)

`POST /v1/group/setMemberAddMode/{instance}`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/v1/group/setMemberAddMode/{instance}`
- Auth: API key in header `apikey`

Accepts a regular group or subgroup JID. Community parent JIDs are rejected by WhatsApp.

## Path parameters

- `instance` string, required

## Request body

- DtoGroupSetMemberAddModeRequest
  - `groupJid` string, required
  - `mode` 'admin_add' | 'all_member_add', required

## Response `201`

Created

- object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `410`: Gone
- `422`: Unprocessable Entity
- `429`: Too Many Requests
- `500`: Internal Server Error

## Changes

- **2026-08-18** `854c37c55b3a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/verbeux-ai/apis/whatsmiau-api/changes/v1/group/setMemberAddMode/:instance/post.md)

---

[API](https://skmtc.dev/verbeux-ai/apis/whatsmiau-api.md) - [All operations](https://skmtc.dev/verbeux-ai/apis/whatsmiau-api/llms.txt) - [OpenAPI document](https://skmtc.dev/verbeux-ai/apis/whatsmiau-api/revisions/b425ec589eb0?raw)
