Classic APIs
ClassicGroupsApi
setGroupRolePermissions

setGroupRolePermissions

Sets permissions for a role in a group.

Parameters

NameTypeDescription
groupIdGroupIdThe id of the group.
roleSetIdRoleSetIdThe id of the role to set permissions for.
permissionsGroupRolePermissionsAn object of permissions to set.

Example

const { data: success } = await ClassicGroupsApi.setGroupRolePermissions({
  groupId: 5850082,
  roleSetId: 38353813,
  permissions: { viewStatus: true },
}); 

Endpoint

PATCH /v1/groups/{groupId}/roles/{roleSetId}/permissions