setGroupSettings
Sets settings for a group.
Parameters
Name | Type | Description |
---|---|---|
groupId | Identifier | The id of the group. |
newSettings | GroupSettingsData | The 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