Can the API be used to set/unset host mode and if so how?

I ended up setting editors in the dashboard of the account.