API works. Need to get API to handle Hostgroups