REST API how to add/delete hosts to/from a host group

Thanks paulr282 for your help! I got it to work like this:

--data '{
        "ruleset": "host_groups",
        "folder": "~folder/subfolder",
        "properties": {
                "description": "MyHostGroup",
                "disabled": false
        },
        "value_raw": "\"MyHostGroup\"",
        "conditions": {}
    }'

Thanks
Martin

1 Like