> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: updateGroup(_id: string, group: UpdateGroup, options: UpdateGroupOptions) # Method package: wixGroupsV2 # Method menu location: wixGroupsV2 --> groups --> updateGroup # Method Link: https://dev.wix.com/docs/velo/apis/wix-groups-v2/groups/update-group.md # Method Description: Updates a group. When a public or private group's name is updated, the slug is updated to reflect the new group name. Only group admins can update their group. > **Notes:** > + When `group.privacyStatus` is updated from `PRIVATE` to `PUBLIC`, all pending group join requests are automatically approved. > + When `group.privacyStatus` is updated from `PRIVATE` to `SECRET`, all pending group join requests are automatically rejected. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## updateGroup example for dashboard page code ```javascript import { groups } from 'wix-groups.v2'; async function updateGroup(id, group, options) { try { const result = await groups.updateGroup(id, group, options); return result; } catch (error) { console.error(error); // Handle the error } } ``` ## updateGroup example for exporting from backend code ```javascript import { groups } from 'wix-groups.v2'; import { webMethod, Permissions } from 'wix-web-module'; import { elevate } from 'wix-auth'; const elevatedUpdateGroup = elevate(groups.updateGroup); export const updateGroup = webMethod( Permissions.Anyone, async (id, group, options) => { try { const result = await elevatedUpdateGroup(id, group, options); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---