Skip to content

[NOWEB] Expose group member-add-mode as a settable endpoint (groupMemberAddMode is already in the bundled baileys fork) #2165

Description

@alisonmwhite

What: A group-settings endpoint to set who can add members (WhatsApp's "Add other members" toggle), matching the existing settings pattern, e.g.:

PUT /api/{session}/groups/{id}/settings/security/member-add-mode with { "mode": "admin_add" | "all_member_add" }.

Why: WAHA currently exposes membersCanAddNewMember only as a read-only field on GET /groups/{id} (mapped from baileys group.memberAddMode) — there's no way to set it. The two existing security settings (info-admin-only, messages-admin-only) are settable via PUT, but member-add-mode is not. Automated group-provisioning flows have to leave this as a manual per-group toggle in the app.

Feasibility (NOWEB): The capability is already one call below the API surface — the bundled baileys fork has groupMemberAddMode(jid, 'admin_add' | 'all_member_add') in src/Socket/groups.ts. This looks like a thin wrapper analogous to the existing groupSettingUpdate-backed endpoints, e.g.:

setMemberAddMode(id, value) {
  return this.sock.groupMemberAddMode(id, value ? 'all_member_add' : 'admin_add')
}

Engine scope: NOWEB (baileys) confirmed supported. Happy to help test.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions