Actions
Bug #9352
openRegression of API host creation bug #7989
Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Description
After upgrading from 1.6.x to 1.7.2 I am facing the exact same issue as described in bug #7989.
Trying to create a host returns error:
"operatingsystem_id is not allowed as nested parameter for hosts. Allowed parameters are hostgroup_id, location_id, organization_id, environment_id"
If any further information is helpful please let me know.
Updated by Emil Flink over 9 years ago
Sorry, apparently my POST request was actually incorrect but correct enough to pass in old versions of Foreman.
I sent my data as: { key: value, key2: value }
When I should have sent: {'host': { key: value, key2: value } }
Actions