Actions
Feature #2728
closedAPI: POST /api/hostgroups does not accept ancestry
Description
When trying to use the API to create hostgroups, POST /api/hostgroups does not accept a hostgroup[ancestry] as a parameter. This means a user cannot create nested hostgroups through the API.
The example json in the documentation for the API shows both hostgroup[ancestry] and hostgroup[parameters] being accepted on a post, but in the parameters below the example, neither of these are listed and indeed this is reflected in code at app/controllers/api/v1/hostgroups_controller.rb. PUT /api/hostgroups does not accept either of these fields either.
This greatly limits the usability of either of these routes unless you want to create un-nested host groups.
Actions