The options for choosing hostgroup inheritance for host in the GUI are standard, null or +.
In my code I'm posting hostgroups like this:
Code: Select all
$hostgroup="+hostgroup1,hostgroup2"
curl -X POST "$ENDPOINT" -d "hostgroups=$hostgroups"
Thanks for your help.