setGroupRolePermissions
Sets permissions for a role in a group.
Parameters
Name | Type | Description |
---|---|---|
groupId | GroupId | The id of the group. |
roleSetId | RoleSetId | The id of the role to set permissions for. |
permissions | GroupRolePermissions | An 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