change Member Role

fun changeMemberRole(member: Team.RefyTeamMember, role: Team.RefyTeamMember.TeamRole, onSuccess: () -> Unit)

Function to execute the request to change the role of a member

Parameters

member

: the member to change his/her role

role

: the role to set

onSuccess

: the action to execute if the request has been successful