Classic APIs
ClassicGroupsApi
setGroupSettings

setGroupSettings

Sets settings for a group.

Parameters

NameTypeDescription
groupIdIdentifierThe id of the group.
newSettingsGroupSettingsDataThe new settings for the group.

Example

const { data: success } = await ClassicGroupsApi.setGroupSettings({
  groupId: 5850082,
  newSettings: {
    isApprovalRequired: true,
    isBuildersClubRequired: false,
    areEnemiesAllowed: true,
    areGroupFundsVisible: false,
    areGroupGamesVisible: true,
    isGroupNameChangeEnabled: true,
  },
}); 

Endpoint

PATCH /v1/groups/{groupId}/settings