API - Add Host to Contact Group

get_rulesets is from the old and soon deprectaed WATO API.
You may be able to edit rules with that API but you will always need to read the complete ruleset, modify it on client side and write the complete ruleset again.