I was able to find a solution. By acessing the role I want directly, using:
http://localhost:1337/api/users-permissions/roles/1
it returns the current role with the list of permissions of that role.
it’s then possible to change the permissions and, using PUT method, update the permissions of that role via API directly.