Edit role of users via api

Hi,

I’m trying to edit user’s roles via the looker api , I want to remove a role for a person and assign to him a new role. I couldn’t do it since the method set_role_users is only adding a role and not edit the roles.

For example turn  admin to viewer .

0 0 220