Ok, for anybody who is curious.
Doing a PUT to /provisioning_templates/:id with
{"provisioning_template" : {"template_combinations_attributes" :
[{"hostgroup_id" : "73"}, {"hostgroup_id" : "77"}, {"hostgroup_id" : "81"},
{"hostgroup_id" : "85"}]}}
Seems to do this trick.
On Thursday,
2 years later and it still doesn't!I've lost a few hours today trying to
figure this out!
My next question though is how do we do this via the API? Taking a look at
what is generated by foreman:
2016-09-15T21:46:41 [app] [I] Started PATCH