That's already possible:
https://cloudstack.apache.org/api/apidocs-4.15/apis/updateAccount.html
roleid: "The UUID of the dynamic role to set for the account"
Isn't that what you are looking for?
Wido
On 22/04/2021 11:55, Rakesh Venkatesh wrote:
Hello folks
I dont think there is an endpoint right now to change the role of the
account. If I have to change that in db, that should be doable right by
changing the id's in two or three tables. I hope that wont break anything
else. Is it good to add a new parameter to updateAccount api to take the
new role id?