Classic APIs
ClassicGroupsApi
updateGroupRoleSet

updateGroupRoleSet

Updates an existing role set.

Parameters

NameTypeDescription
groupIdIdentifierThe id of the group.
roleSetIdIdentifierThe id of the role to update.
request🤷The updated information.

Example

const { data: updatedRole } = await ClassicGroupsApi.updateGroupRoleSet({
  groupId: 5850082,
  roleSetId: 38353813,
  newData: {
    name: "Mighty Member",
    description: "A regular group member.",
    rank: 2,
  },
}); 

Example Data

{
  id: 38353813,
  name: "Mighty Member",
  description: "A regular group member.",
  rank: 2,
  memberCount: 94,
} 

Endpoint

PATCH /v1/groups/{groupId}/rolesets/{roleSetId}