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.
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-modewith{ "mode": "admin_add" | "all_member_add" }.Why: WAHA currently exposes
membersCanAddNewMemberonly as a read-only field onGET /groups/{id}(mapped from baileysgroup.memberAddMode) — there's no way to set it. The two existing security settings (info-admin-only,messages-admin-only) are settable viaPUT, 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')insrc/Socket/groups.ts. This looks like a thin wrapper analogous to the existinggroupSettingUpdate-backed endpoints, e.g.:Engine scope: NOWEB (baileys) confirmed supported. Happy to help test.