I found below articles but I can't make it work.
Edit account permissions via API - SolarWinds SDK - The SolarWinds Platform - THWACK
Create/Update operations are not working for Orion.Accounts through SolarWinds Rest API - SolarWinds SDK - The SolarWinds Platform - THWACK
I tried using via API Set-SwisObject using the account URI but it is not allowed